automatically set capabilities for wrapped agents#38
Open
pmeier wants to merge 6 commits into
Open
Conversation
pmeier
commented
May 27, 2026
| return self._quick_prompts | ||
|
|
||
| @staticmethod | ||
| async def extract_capabilities( |
Member
Author
There was a problem hiding this comment.
I've opened pydantic/pydantic-ai#5686 to hopefully push this upstream.
| return run_agent(self._agent, input) # type: ignore[return-value] | ||
|
|
||
| @staticmethod | ||
| def extract_capabilities(agent: agno.agent.Agent) -> ag_ui.core.AgentCapabilities: |
Member
Author
There was a problem hiding this comment.
I've opened agno-agi/agno#8127 to hopefully push this upstream.
| tools=ag_ui.core.ToolsCapabilities( | ||
| supported=True, | ||
| items=tools, | ||
| client_provided=False, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #5, closes #6, closes #7. Using a demo agent from the nebari-chat-pack
we get the following output
{ "identity": { "name": "Austin Permits Agent (Claude Sonnet 4.6)", "type": "pydantic-ai" }, "transport": { "streaming": true }, "tools": { "supported": true, "items": [ { "name": "get_database_schema", "description": "Get the schema for the database.\n\nUse this tool to understand the database structure before issuing\nany queries to the database.", "parameters": { "additionalProperties": false, "properties": {}, "type": "object" } }, { "name": "execute_query", "description": "Execute a query against the database.\n\nThe query should not attempt to modify the db in any way.\n\nThe database is mounted as readonly, so queries that attempt to modify it will fail.\n\nThis tool takes a single argument, which is the SQL query to execute\nagainst the database.", "parameters": { "additionalProperties": false, "properties": { "query": { "type": "string" } }, "required": [ "query" ], "type": "object" } }, { "name": "create_chart", "description": "Create a chart from data using Apache ECharts.", "parameters": { "additionalProperties": true, "description": "Apache ECharts configuration object.\n\nOnly use features that can be serialized as plain JSON data.\nJS function callbacks are not supported.", "properties": {}, "title": "ChartConfig", "type": "object" } }, { "name": "create_map", "description": "\n Create a map with markers from the data.\n\n If a link to the permit is available, include it in any popup.\n ", "parameters": { "$defs": { "GeoJSONFeature": { "description": "A single GeoJSON feature with optional popup properties.", "properties": { "type": { "default": "Feature", "description": "Must be 'Feature'.", "type": "string" }, "geometry": { "additionalProperties": true, "description": "GeoJSON geometry object (Point, LineString, Polygon, etc.).", "type": "object" }, "properties": { "type": "object", "additionalProperties": true, "description": "Feature properties. Use a 'popup' key with an HTML string to add a popup." } }, "required": [ "geometry" ], "title": "GeoJSONFeature", "type": "object" }, "GeoJSONFeatureCollection": { "description": "A GeoJSON FeatureCollection.", "properties": { "type": { "default": "FeatureCollection", "description": "Must be 'FeatureCollection'.", "type": "string" }, "features": { "description": "List of GeoJSON features.", "items": { "$ref": "#/$defs/GeoJSONFeature" }, "type": "array" } }, "required": [ "features" ], "title": "GeoJSONFeatureCollection", "type": "object" } }, "additionalProperties": true, "properties": { "center": { "description": "Map center as [latitude, longitude] in floating point numbers.", "items": { "type": "number" }, "maxItems": 2, "minItems": 2, "type": "array" }, "features": { "$ref": "#/$defs/GeoJSONFeatureCollection", "description": "GeoJSON feature collection with markers and popup metadata." } }, "required": [ "center" ], "title": "MapData", "type": "object" } } ], "client_provided": true }, "output": { "structured_output": false } }