Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkbrnd committed Feb 14, 2025
1 parent ffd5271 commit 8115576
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cookbook/models/ollama_tools/async_tool_use_stream.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
"""Run `pip install duckduckgo-search` to install dependencies."""

import asyncio

from agno.agent import Agent
from agno.models.ollama import OllamaTools
from agno.tools.duckduckgo import DuckDuckGoTools
import asyncio

agent = Agent(
model=OllamaTools(id="llama3.1:8b"),
Expand Down
3 changes: 1 addition & 2 deletions libs/agno/agno/models/google/gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,12 @@ def _convert_schema(schema_dict) -> Optional[Schema]:
required = schema_dict.get("required", [])

if properties:
schema = Schema(
return Schema(
type=schema_type,
properties=properties,
required=required,
description=description,
)
return schema
else:
return None
else:
Expand Down
1 change: 1 addition & 0 deletions libs/agno/tests/integration/model/openai/test_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def test_image_input():

assert "golden" in response.content.lower()


def test_history_grows_exponentially():
db_url = "postgresql+psycopg://ai:ai@localhost:5532/ai"
agent = Agent(
Expand Down

0 comments on commit 8115576

Please sign in to comment.