Skip to content

Fix #232: Add descriptions for tools and agents deployed from images - #549

Merged
pdettori merged 8 commits into
rossoctl:mainfrom
RyanJenkins99:fix/description-bug-tools-agents
Feb 6, 2026
Merged

pdettori merged 8 commits into
rossoctl:mainfrom
RyanJenkins99:fix/description-bug-tools-agents

Conversation

@RyanJenkins99

@RyanJenkins99 RyanJenkins99 commented Jan 26, 2026 •

Copy link
Copy Markdown
Contributor

Closes #232

Problem

Tools and agents deployed from existing images display "No description" in catalog pages because the description field was missing from their specs.

Solution

Added description field when creating manifests:

Tools: Tool 'name' deployed from existing image 'image:tag'

Agents:

  • From source: Agent 'name' built from source
  • From image: Agent 'name' deployed from existing image 'image:tag'

Changes

  • tools.py - Add description to MCPServer spec
  • agents.py - Add dynamic description to Agent spec

@RyanJenkins99 RyanJenkins99 changed the title Fix/description bug tools agents Fix #232: Add descriptions for tools and agents deployed from images Jan 26, 2026
@pdettori

Copy link
Copy Markdown
Member

@RyanJenkins99 thanks for your PR - before we can review it, could you please amend your commit to pass the DCO check ? Instructions are in the link to the DCO check

@RyanJenkins99
RyanJenkins99 force-pushed the fix/description-bug-tools-agents branch from 777f670 to 32794b0 Compare January 27, 2026 09:39
@RyanJenkins99

Copy link
Copy Markdown
Contributor Author

@pdettori thanks for letting me know! That change has been made.

@pdettori

Copy link
Copy Markdown
Member

@RyanJenkins99 thanks, could you please fix the linting error ?

@RyanJenkins99
RyanJenkins99 force-pushed the fix/description-bug-tools-agents branch from 636977a to 418c1ed Compare January 30, 2026 10:37
@pdettori

Copy link
Copy Markdown
Member

@RyanJenkins99 please see CI issues above - need also rebasing

@rubambiza rubambiza moved this from Backlog to In progress in Rossoctl Issue Prioritization Feb 2, 2026
@RyanJenkins99
RyanJenkins99 force-pushed the fix/description-bug-tools-agents branch from 418c1ed to 04aeaf7 Compare February 4, 2026 12:26
Comment thread kagenti/backend/app/routers/agents.py Resolved
@pdettori

pdettori commented Feb 4, 2026 •

Copy link
Copy Markdown
Member

I tested in my local env by first deploying kagenti and then running make build-load-ui and then running the helm command printed at the end. When I try to import an agent from an image it works, but when I try to do the same for a tool (using images from https://github.com/kagenti/agent-examples/pkgs/container/agent-examples%2Fweather_tool ) I get an error:

(tools.py:1385): AttributeError: 'CreateToolRequest' object has no attribute 'description' 

This is caused by CreateToolRequest model missing the description field that was added to _build_tool_deployment_manifest.

There is also a second issue in the backend log but that may not be directly related to this PR:

(agents.py:353): TypeError: '>' not supported between instances of 'NoneType' and 'int' - the replicas value is None when checking deployment readiness

This is due to code that does status.get("replicas", 0) which should return 0 if the key doesn't exist. However, if the key exists with a value of None, it returns None (not the default). The comparison replicas > 0 then fails.

@RyanJenkins99

RyanJenkins99 commented Feb 4, 2026 •

Copy link
Copy Markdown
Contributor Author

I tested in my local env by first deploying kagenti and then running make build-load-ui and then running the helm command printed at the end. When I try to import an agent from an image it works, but when I try to do the same for a tool (using images from https://github.com/kagenti/agent-examples/pkgs/container/agent-examples%2Fweather_tool ) I get an error:

(tools.py:1385): AttributeError: 'CreateToolRequest' object has no attribute 'description' 

This is caused by CreateToolRequest model missing the description field that was added to _build_tool_deployment_manifest.

There is also a second issue in the backend log but that may not be directly related to this PR:

(agents.py:353): TypeError: '>' not supported between instances of 'NoneType' and 'int' - the replicas value is None when checking deployment readiness

This is due to code that does status.get("replicas", 0) which should return 0 if the key doesn't exist. However, if the key exists with a value of None, it returns None (not the default). The comparison replicas > 0 then fails.

Thanks for testing, You're right on both issues:

Issue 1 (PR #549): The CreateToolRequest model is missing the description field. When I added the description logic to _build_tool_deployment_manifest, I forgot to add the corresponding field to the
Pydantic model. I'll fix this now.

As for Issue 2: I think I can just

  • replicas = status.get("replicas", 0)
  • replicas = status.get("replicas") or 0

    I'll look into making this change:

@RyanJenkins99
RyanJenkins99 force-pushed the fix/description-bug-tools-agents branch from bcae314 to 2f18e4f Compare February 4, 2026 16:03
@pdettori

pdettori commented Feb 4, 2026

Copy link
Copy Markdown
Member

@RyanJenkins99 thanks, I ran a quick test with make build-load-ui and helm upgrade. I see those errors are fixed, but I noticed that when I add an agent from image I get the description "Agent 'a2a-currency-converter' deployed from UI." but if I do the same with a tool image (for example the image from https://github.com/kagenti/agent-examples/pkgs/container/agent-examples%2Fweather_tool ) then I see "No description available" - could you pls. see if you can replicate in your local env?

image

@RyanJenkins99

RyanJenkins99 commented Feb 5, 2026 •

Copy link
Copy Markdown
Contributor Author

@RyanJenkins99 thanks, I ran a quick test with make build-load-ui and helm upgrade. I see those errors are fixed, but I noticed that when I add an agent from image I get the description "Agent 'a2a-currency-converter' deployed from UI." but if I do the same with a tool image (for example the image from https://github.com/kagenti/agent-examples/pkgs/container/agent-examples%2Fweather_tool ) then I see "No description available" - could you pls. see if you can replicate in your local env?

image
image

I hope this validates the update! Seems to be working for me now.

RyanJenkins99 and others added 8 commits February 5, 2026 11:33
Signed-off-by: Ryan Jenkins <[email protected]>
Apply ruff formatting to test_env_var_validation.py

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Signed-off-by: Ryan Jenkins <[email protected]>
…#549

PR rossoctl#549 should only contain description field changes for agents/tools
deployed from images vs built from source. The environment variable
validation logic from PR rossoctl#548 was incorrectly included and has been
removed.

Changes removed:
- Backend validation in agents.py and tools.py
- Frontend validation in ImportAgentPage.tsx and ImportToolPage.tsx
- Test file test_env_var_validation.py

The description field changes from PR rossoctl#549 are preserved.

Signed-off-by: Ryan Jenkins <[email protected]>
The CreateToolRequest model was missing the description field, causing
an AttributeError when trying to deploy tools from images. The
_build_tool_deployment_manifest function expects request.description
but it wasn't defined in the Pydantic model.

Fixes error: 'CreateToolRequest' object has no attribute 'description'

Signed-off-by: Ryan Jenkins <[email protected]>
@RyanJenkins99
RyanJenkins99 force-pushed the fix/description-bug-tools-agents branch from 3f45ee3 to 301a622 Compare February 5, 2026 11:34

@pdettori pdettori left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm - Thank you @RyanJenkins99

@pdettori
pdettori merged commit 528db05 into rossoctl:main Feb 6, 2026
15 checks passed
@github-project-automation github-project-automation Bot moved this from In progress to Done in Rossoctl Issue Prioritization Feb 6, 2026
pdettori pushed a commit to pdettori/rossoctl that referenced this pull request Feb 10, 2026
…#549

PR rossoctl#549 should only contain description field changes for agents/tools
deployed from images vs built from source. The environment variable
validation logic from PR rossoctl#548 was incorrectly included and has been
removed.

Changes removed:
- Backend validation in agents.py and tools.py
- Frontend validation in ImportAgentPage.tsx and ImportToolPage.tsx
- Test file test_env_var_validation.py

The description field changes from PR rossoctl#549 are preserved.

Signed-off-by: Ryan Jenkins <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bug: Incorrect tool description for existing tool image deployments

3 participants