8000 GitHub - jonslo/a2a-ui: UI for Google A2A made using Next.js, Typescript and Shadcn.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jonslo/a2a-ui

 
 

Repository files navigation

A2A UI

UI for Google A2A made using Next.js, Typescript and Shadcn

image

Make sure you've configured CORS policies correctly (for local use)

from starlette.middleware.cors import CORSMiddleware  # Import CORSMiddleware

# your agent definition goes here 

server = A2AServer(
    agent_card=agent_card,
    task_manager=AgentTaskManager(agent=QAAgent()),
    host=host,
    port=port,
)
# Add CORSMiddleware to allow requests from any origin (disables CORS restrictions)
server.app.add_middleware(
    CORSMiddleware,
    allow_origins=["*"],  # Allow all origins
    allow_methods=["*"],  # Allow all HTTP methods (GET, POST, etc.)
    allow_headers=["*"],  # Allow all headers
)
server.start()

About

UI for Google A2A made using Next.js, Typescript and Shadcn.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 94.9%
  • CSS 4.8%
  • Other 0.3%
0