Fix typos

This commit is contained in:
Yiorgis Gozadinos 2025-10-14 09:57:52 +03:00
parent c0691bc237
commit c562aa0551
No known key found for this signature in database
2 changed files with 2 additions and 5 deletions

View file

@ -124,7 +124,7 @@ export A2A_MAX_CONTEXTS=1000
## Security ## Security
By default, the A2A agent runs without authenticationto. For production deployments, you should add authentication. By default, the A2A agent runs without authentication. For production deployments, you should add authentication.
### Adding Authentication ### Adding Authentication

View file

@ -1,3 +1,4 @@
import json
import logging import logging
import uuid import uuid
from pathlib import Path from pathlib import Path
@ -65,8 +66,6 @@ class ConversationalWorker(Worker[list[Message]]):
context = await self.storage.load_context(task["context_id"]) or [] context = await self.storage.load_context(task["context_id"]) or []
message_history = load_message_history(context) message_history = load_message_history(context)
from haiku.rag.a2a.models import AgentDependencies
deps = AgentDependencies(client=client) deps = AgentDependencies(client=client)
result = await self.agent.run( result = await self.agent.run(
@ -274,8 +273,6 @@ class ConversationalWorker(Worker[list[Message]]):
) )
if tool_name == "search_documents" and content: if tool_name == "search_documents" and content:
import json
from fasta2a.schema import DataPart from fasta2a.schema import DataPart
# Extract query from tool call arguments # Extract query from tool call arguments