-
Couldn't load subscription status.
- Fork 150
Implement ACP #568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement ACP #568
Conversation
0e4c814 to
2f2bf81
Compare
Signed-off-by: Djordje Lukic <[email protected]>
Making it possible to re-define builtin tools when we call the team loader Signed-off-by: Djordje Lukic <[email protected]>
|
Note: I am not handling embedded resources still, will do in a followup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for context since i haven't gone deep in ACP, is filesystem the only toolset that needs/wiil need an ACP specific wrapper?
Also a quick mention in the README is probably warranted, to show users how they can use the project
| $ cagent api config.yaml | ||
| $ cagent api config.yaml --listen :8080 | ||
|
|
||
| # ACP Server (Agent Client Protocol via stdio) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe here we could add a brief mention of what its for, and a link to https://agentclientprotocol.com/overview/introduction?
| if content.Text != nil { | ||
| userContent += content.Text.Text | ||
| } | ||
| if content.ResourceLink != nil { | ||
| slog.Debug("resource link", "link", content.ResourceLink) | ||
| } | ||
| if content.Resource != nil { | ||
| slog.Debug("embedded context", "context", content.Resource) | ||
| slog.Debug(content.Resource.Resource.TextResourceContents.Text) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shall we add at least the debug logs for the other types of content as well so we dont forget to implement them later? (image, audio, blob resources)
https://agentclientprotocol.com/protocol/content#param-resource
With the new `cagent acp <agent.yaml` command Signed-off-by: Djordje Lukic <[email protected]>
|
Nice one! Could you provide an example |
|
In the screenshot I was using the You can also try the You can also |
This implements the ACP protocol in cagent, you can now configure your ACP client with
cagent acp agent.yamland then you can use your agent in your IDE.Start of a session

Tool confirmation

Final thing, with file edit tracking in Zed.
