其他工具包
Giphy
GiphyTools 使 Agent 能够搜索 GIPHY 上的 GIF。
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 agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.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.")
| 参数 | 类型 | 默认值 | 描述 |
|---|---|---|---|
api_key | str | None | 如果您想手动提供 GIPHY API 密钥。 |
limit | int | 1 | 搜索时返回的 GIF 数量。 |
| 函数 | 描述 |
|---|---|
search_gifs | 根据查询字符串在 GIPHY 上搜索 GIF。 |