Files
tw2/examples/agent/a2ui_agent/samples/general_agent/agent_card.py
codex-bot a64378956a
Some checks failed
Pre-commit / run (ubuntu-latest) (push) Has been cancelled
Deploy Sphinx documentation to Pages / build_en (ubuntu-latest, 3.10) (push) Has been cancelled
Deploy Sphinx documentation to Pages / build_zh (ubuntu-latest, 3.10) (push) Has been cancelled
Python Unittest Coverage / test (macos-15, 3.10) (push) Has been cancelled
Python Unittest Coverage / test (macos-15, 3.11) (push) Has been cancelled
Python Unittest Coverage / test (macos-15, 3.12) (push) Has been cancelled
Python Unittest Coverage / test (ubuntu-latest, 3.10) (push) Has been cancelled
Python Unittest Coverage / test (ubuntu-latest, 3.11) (push) Has been cancelled
Python Unittest Coverage / test (ubuntu-latest, 3.12) (push) Has been cancelled
Python Unittest Coverage / test (windows-latest, 3.10) (push) Has been cancelled
Python Unittest Coverage / test (windows-latest, 3.11) (push) Has been cancelled
Python Unittest Coverage / test (windows-latest, 3.12) (push) Has been cancelled
chore: initialize sandbox and overwrite remote content
2026-03-02 22:32:27 +08:00

40 lines
1.3 KiB
Python

# -*- coding: utf-8 -*-
"""The agent card definition for the A2A agent."""
from a2a.types import AgentCard, AgentCapabilities, AgentSkill
from a2ui.extension.a2ui_extension import get_a2ui_agent_extension
agent_card = AgentCard(
name="Friday",
description="A simple ReAct agent that handles input queries",
url="http://localhost:10002",
version="1.0.0",
capabilities=AgentCapabilities(
push_notifications=False,
state_transition_history=True,
streaming=True,
extensions=[get_a2ui_agent_extension()],
),
default_input_modes=["text/plain"],
default_output_modes=["text/plain"],
skills=[
AgentSkill(
name="execute_python_code",
id="execute_python_code",
description="Execute Python code snippets.",
tags=["code_execution"],
),
AgentSkill(
name="execute_shell_command",
id="execute_shell_command",
description="Execute shell commands on the server.",
tags=["code_execution"],
),
AgentSkill(
name="view_text_file",
id="view_text_file",
description="View the content of a text file on the server.",
tags=["file_viewing"],
),
],
)