Prerequisites
Example
The following agent will search GIPHY for a GIF appropriate for a birthday message.Toolkit Params
Toolkit Functions
Information
- View on Github
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
export GIPHY_API_KEY=***
from phi.agent import Agent
from phi.model.openai import OpenAIChat
from phi.tools.giphy import GiphyTools
gif_agent = Agent(
name="Gif Generator Agent",
model=OpenAIChat(id="gpt-4o"),
tools=[GiphyTools()],
description="You are an AI agent that can generate gifs using Giphy.",
)
gif_agent.print_response("I want a gif to send to a friend for their birthday.")
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key | str | None | If you want to manually supply the GIPHY API key. |
limit | int | 1 | The number of GIFs to return in a search. |
| Function | Description |
|---|---|
search_gifs | Searches GIPHY for a GIF based on the query string. |
Was this page helpful?