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
4 changes: 4 additions & 0 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
excinfo
GVsb
notif
otherurl
10 changes: 2 additions & 8 deletions examples/google_adk/birthday_planner/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,13 @@
import click
import uvicorn

from adk_agent_executor import ADKAgentExecutor # type: ignore[import-untyped]
from adk_agent_executor import ADKAgentExecutor # type: ignore[import-untyped]
from dotenv import load_dotenv

from a2a.server.apps import A2AStarletteApplication
from a2a.server.request_handlers import DefaultRequestHandler
from a2a.server.tasks import InMemoryTaskStore
from a2a.types import (
AgentAuthentication,
AgentCapabilities,
AgentCard,
AgentSkill,
)
from a2a.types import AgentCapabilities, AgentCard, AgentSkill


load_dotenv()
Expand Down Expand Up @@ -69,7 +64,6 @@ def main(host: str, port: int, calendar_agent: str):
defaultOutputModes=['text'],
capabilities=AgentCapabilities(streaming=True),
skills=[skill],
authentication=AgentAuthentication(schemes=['public']),
)
request_handler = DefaultRequestHandler(
agent_executor=agent_executor, task_store=InMemoryTaskStore()
Expand Down
26 changes: 13 additions & 13 deletions examples/google_adk/calendar_agent/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@
import click
import uvicorn

from adk_agent import create_agent # type: ignore[import-not-found]
from adk_agent_executor import ADKAgentExecutor # type: ignore[import-untyped]
from adk_agent import create_agent # type: ignore[import-not-found]
from adk_agent_executor import ADKAgentExecutor # type: ignore[import-untyped]
from dotenv import load_dotenv
from google.adk.artifacts import InMemoryArtifactService # type: ignore[import-untyped]
from google.adk.memory.in_memory_memory_service import InMemoryMemoryService # type: ignore[import-untyped]
from google.adk.runners import Runner # type: ignore[import-untyped]
from google.adk.sessions import InMemorySessionService # type: ignore[import-untyped]
from google.adk.artifacts import (
InMemoryArtifactService, # type: ignore[import-untyped]
)
from google.adk.memory.in_memory_memory_service import (
InMemoryMemoryService, # type: ignore[import-untyped]
)
from google.adk.runners import Runner # type: ignore[import-untyped]
from google.adk.sessions import (
InMemorySessionService, # type: ignore[import-untyped]
)
from starlette.applications import Starlette
from starlette.requests import Request
from starlette.responses import PlainTextResponse
Expand All @@ -19,12 +25,7 @@
from a2a.server.apps import A2AStarletteApplication
from a2a.server.request_handlers import DefaultRequestHandler
from a2a.server.tasks import InMemoryTaskStore
from a2a.types import (
AgentAuthentication,
AgentCapabilities,
AgentCard,
AgentSkill,
)
from a2a.types import AgentCapabilities, AgentCard, AgentSkill


load_dotenv()
Expand Down Expand Up @@ -63,7 +64,6 @@ def main(host: str, port: int):
defaultOutputModes=['text'],
capabilities=AgentCapabilities(streaming=True),
skills=[skill],
authentication=AgentAuthentication(schemes=['public']),
)

adk_agent = create_agent(
Expand Down
12 changes: 4 additions & 8 deletions examples/helloworld/__main__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
from agent_executor import HelloWorldAgentExecutor # type: ignore[import-untyped]
from agent_executor import (
HelloWorldAgentExecutor, # type: ignore[import-untyped]
)

from a2a.server.apps import A2AStarletteApplication
from a2a.server.request_handlers import DefaultRequestHandler
from a2a.server.tasks import InMemoryTaskStore
from a2a.types import (
AgentAuthentication,
AgentCapabilities,
AgentCard,
AgentSkill,
)
from a2a.types import AgentCapabilities, AgentCard, AgentSkill


if __name__ == '__main__':
Expand All @@ -29,7 +26,6 @@
defaultOutputModes=['text'],
capabilities=AgentCapabilities(streaming=True),
skills=[skill],
authentication=AgentAuthentication(schemes=['public']),
)

request_handler = DefaultRequestHandler(
Expand Down
12 changes: 3 additions & 9 deletions examples/langgraph/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,14 @@
import click
import httpx

from agent import CurrencyAgent # type: ignore[import-untyped]
from agent_executor import CurrencyAgentExecutor # type: ignore[import-untyped]
from agent import CurrencyAgent # type: ignore[import-untyped]
from agent_executor import CurrencyAgentExecutor # type: ignore[import-untyped]
from dotenv import load_dotenv

from a2a.server.apps import A2AStarletteApplication
from a2a.server.request_handlers import DefaultRequestHandler
from a2a.server.tasks import InMemoryPushNotifier, InMemoryTaskStore
from a2a.types import (
AgentAuthentication,
AgentCapabilities,
AgentCard,
AgentSkill,
)
from a2a.types import AgentCapabilities, AgentCard, AgentSkill


load_dotenv()
Expand Down Expand Up @@ -64,7 +59,6 @@ def get_agent_card(host: str, port: int):
defaultOutputModes=CurrencyAgent.SUPPORTED_CONTENT_TYPES,
capabilities=capabilities,
skills=[skill],
authentication=AgentAuthentication(schemes=['public']),
)


Expand Down
Loading