docs(reference/api): add chat context endpoints to API reference#26281
Open
david-fraley wants to merge 1 commit into
Open
docs(reference/api): add chat context endpoints to API reference#26281david-fraley wants to merge 1 commit into
david-fraley wants to merge 1 commit into
Conversation
Docs preview📖 View docs preview for |
Replace @x-apidocgen skip annotations on workspaceAgentAddChatContext and workspaceAgentClearChatContext with proper swagger annotations tagged as Chats, then regenerate API docs. The two endpoints now appear on the Chats API reference page: - POST /api/v2/workspaceagents/me/experimental/chat-context - DELETE /api/v2/workspaceagents/me/experimental/chat-context
1c721f3 to
93d3392
Compare
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.
Summary
Add the
POSTandDELETEchat context endpoints to the auto-generated Chats API reference page at coder.com/docs/reference/api/chats.These endpoints (introduced in #24105) allow workspace agents to inject instruction files and skills into an active chat session. The injected content is model-only visible, acting as a hidden prompt mechanism for startup scripts, CI/CD integrations, and custom agents.
Changes
@x-apidocgen {"skip": true}onworkspaceAgentAddChatContextandworkspaceAgentClearChatContextwith proper swagger annotations tagged asChats.make coderd/apidoc/.gen.New endpoints on the Chats page:
POST /api/v2/workspaceagents/me/experimental/chat-context)DELETE /api/v2/workspaceagents/me/experimental/chat-context)