mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Fix import for Agent
This commit is contained in:
parent
bc6262cc79
commit
1d7155d28b
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ This will log detailed information about the internal processes and interactions
|
||||||
Now you are ready to create a simple agent that can interact with the LLM. The agent is initialized with a model, and you can also define a system prompt. Here's an example where a basic agent is created with the model `g4f:Gemini:Gemini` and a simple system prompt:
|
Now you are ready to create a simple agent that can interact with the LLM. The agent is initialized with a model, and you can also define a system prompt. Here's an example where a basic agent is created with the model `g4f:Gemini:Gemini` and a simple system prompt:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from g4f import Agent
|
from pydantic_ai import Agent
|
||||||
|
|
||||||
# Define the agent
|
# Define the agent
|
||||||
agent = Agent(
|
agent = Agent(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue