Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
josead committed Dec 30, 2024
1 parent 71c8808 commit f63ede3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pydantic_ai_slim/pydantic_ai/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,9 +854,7 @@ async def add_tool(tool: Tool[AgentDeps]) -> None:
result_tools=self._result_schema.tool_defs() if self._result_schema is not None else [],
)

async def _prepare_messages(
self, user_prompt: str, message_history: list[_messages.ModelMessage] | None, run_context: RunContext[AgentDeps]
) -> list[_messages.ModelMessage]:
async def _prepare_messages(self, user_prompt: str, message_history: list[_messages.ModelMessage] | None, run_context: RunContext[AgentDeps]) -> list[_messages.ModelMessage]:
try:
messages = _messages_ctx_var.get()
except LookupError:
Expand Down

0 comments on commit f63ede3

Please sign in to comment.