Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import logging
from typing import Any

from agents import Agent, Runner
from agents import Agent, AgentOutputSchema, Runner
from agents.model_settings import ModelSettings
from agents.models.openai_chatcompletions import OpenAIChatCompletionsModel
from openai import AsyncOpenAI
Expand Down Expand Up @@ -60,7 +60,9 @@ async def create_and_run(
instructions=agent_config.instructions,
model=model,
tools=agent_config.tools or [],
output_type=agent_config.output_schema,
output_type=AgentOutputSchema(agent_config.output_schema, strict_json_schema=False)
if agent_config.output_schema
else None,
model_settings=ms or ModelSettings(),
)

Expand Down
16 changes: 8 additions & 8 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.