Skip to content

feat(coderd/x/chatd/chattool): add description tags to tool parameter structs#24394

Merged
kylecarbs merged 2 commits intomainfrom
chatd/add-tool-parameter-descriptions
Apr 21, 2026
Merged

feat(coderd/x/chatd/chattool): add description tags to tool parameter structs#24394
kylecarbs merged 2 commits intomainfrom
chatd/add-tool-parameter-descriptions

Conversation

@blinkagent
Copy link
Copy Markdown
Contributor

@blinkagent blinkagent Bot commented Apr 15, 2026

Summary

Adds description struct tags to the chatd chattool parameter structs that were missing them. This ensures the LLM receives proper parameter descriptions in the generated tool schema.

Changes

  • createWorkspaceArgs (createworkspace.go): Added descriptions to template_id, name, and parameters fields
  • readTemplateArgs (readtemplate.go): Added description to template_id field
  • listTemplatesArgs (listtemplates.go): Added descriptions to query and page fields

This matches the pattern already used in execute.go (e.g., ExecuteArgs) where fields have description:"..." struct tags that get picked up by the fantasy framework's schema generation.

Without these descriptions, the LLM only sees parameter names with no context about what values to provide.

@blinkagent blinkagent Bot changed the title feat(chatd): add description tags to tool parameter structs feat(coderd/x/chatd/chattool): add description tags to tool parameter structs Apr 15, 2026
blink-so Bot added 2 commits April 21, 2026 17:18
Add description struct tags to the chattool parameter structs
that were missing them (createWorkspaceArgs, readTemplateArgs,
listTemplatesArgs). This ensures the LLM receives proper
parameter descriptions in the tool schema, matching the pattern
already used in execute.go.
@blinkagent blinkagent Bot force-pushed the chatd/add-tool-parameter-descriptions branch from e74b0e1 to 348fc87 Compare April 21, 2026 17:18
@kylecarbs kylecarbs merged commit 79a9f43 into main Apr 21, 2026
26 checks passed
@kylecarbs kylecarbs deleted the chatd/add-tool-parameter-descriptions branch April 21, 2026 18:37
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants