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
2 changes: 1 addition & 1 deletion samples/agent/adk/custom-components-example/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
class ContactAgent:
"""An agent that finds contact info for colleagues."""

SUPPORTED_CONTENT_TYPES = ["text", "text/plain"]
SUPPORTED_CONTENT_TYPES = ["text/plain"]

def __init__(self, base_url: str):
self.base_url = base_url
Expand Down
2 changes: 1 addition & 1 deletion samples/agent/adk/restaurant_finder/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
class RestaurantAgent:
"""An agent that finds restaurants based on user criteria."""

SUPPORTED_CONTENT_TYPES = ["text", "text/plain"]
SUPPORTED_CONTENT_TYPES = ["text/plain"]

def __init__(self, base_url: str):
self.base_url = base_url
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
from prompt_builder import ROLE_DESCRIPTION, UI_DESCRIPTION, WORKFLOW_DESCRIPTION, get_text_prompt
from tools import get_contact_info

SUPPORTED_CONTENT_TYPES = ["text", "text/plain"]
SUPPORTED_CONTENT_TYPES = ["text/plain"]

dotenv.load_dotenv()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ cat <<EOF > agent_request.json
"displayName": "$AGENT_DISPLAY_NAME",
"description": "$AGENT_DESCRIPTION",
"a2aAgentDefinition": {
"jsonAgentCard": "{\"protocolVersion\": \"0.3.0\", \"name\": \"$AGENT_NAME\", \"description\": \"$AGENT_DESCRIPTION\", \"url\": \"$AGENT_URL\", \"version\": \"1.0.0\", \"capabilities\": {\"streaming\": false, \"preferredTransport\": \"JSONRPC\", \"extensions\": [{\"uri\": \"https://a2ui.org/a2a-extension/a2ui/v0.8\", \"description\": \"Ability to render A2UI\", \"required\": false, \"params\": {\"supportedCatalogIds\": [\"https://a2ui.org/specification/v0_8/standard_catalog_definition.json\"]}}]}, \"skills\": [], \"defaultInputModes\": [\"text\", \"text/plain\"], \"defaultOutputModes\": [\"text\", \"text/plain\"]}"
"jsonAgentCard": "{\"protocolVersion\": \"0.3.0\", \"name\": \"$AGENT_NAME\", \"description\": \"$AGENT_DESCRIPTION\", \"url\": \"$AGENT_URL\", \"version\": \"1.0.0\", \"capabilities\": {\"streaming\": false, \"preferredTransport\": \"JSONRPC\", \"extensions\": [{\"uri\": \"https://a2ui.org/a2a-extension/a2ui/v0.8\", \"description\": \"Ability to render A2UI\", \"required\": false, \"params\": {\"supportedCatalogIds\": [\"https://a2ui.org/specification/v0_8/standard_catalog_definition.json\"]}}]}, \"skills\": [], \"defaultInputModes\": [\"text/plain\"], \"defaultOutputModes\": [\"text/plain\"]}"
}
}
EOF
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

logger = logging.getLogger(__name__)

SUPPORTED_CONTENT_TYPES = ["text", "text/plain"]
SUPPORTED_CONTENT_TYPES = ["text/plain"]

dotenv.load_dotenv()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
class A2uiDemoAgent:
"""A generic agent that demos A2UI v0.9 Material and custom components."""

SUPPORTED_CONTENT_TYPES = ["text", "text/plain"]
SUPPORTED_CONTENT_TYPES = ["text/plain"]

def __init__(self, base_url: str):
self.base_url = base_url
Expand Down
Loading