Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Learn more about the protocol itself at <https://agentclientprotocol.com>.
<!-- `$ printf 'go get github.com/coder/acp-go-sdk@v%s\n' "$(cat schema/version)"` as bash -->

```bash
go get github.com/coder/acp-go-sdk@v0.13.4
go get github.com/coder/acp-go-sdk@v0.13.5
```

## Get Started
Expand Down
9 changes: 0 additions & 9 deletions acp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ type agentFuncs struct {
UnstableSetProviderFunc func(context.Context, UnstableSetProviderRequest) (UnstableSetProviderResponse, error)
UnstableDeleteSessionFunc func(context.Context, UnstableDeleteSessionRequest) (UnstableDeleteSessionResponse, error)
UnstableForkSessionFunc func(context.Context, UnstableForkSessionRequest) (UnstableForkSessionResponse, error)
UnstableSetSessionModelFunc func(context.Context, UnstableSetSessionModelRequest) (UnstableSetSessionModelResponse, error)

HandleExtensionMethodFunc func(context.Context, string, json.RawMessage) (any, error)
}
Expand Down Expand Up @@ -240,14 +239,6 @@ func (a agentFuncs) SetSessionConfigOption(ctx context.Context, params SetSessio
return SetSessionConfigOptionResponse{}, nil
}

// UnstableSetSessionModel implements AgentExperimental.
func (a agentFuncs) UnstableSetSessionModel(ctx context.Context, params UnstableSetSessionModelRequest) (UnstableSetSessionModelResponse, error) {
if a.UnstableSetSessionModelFunc != nil {
return a.UnstableSetSessionModelFunc(ctx, params)
}
return UnstableSetSessionModelResponse{}, nil
}

func (a agentFuncs) UnstableDidChangeDocument(ctx context.Context, params UnstableDidChangeDocumentNotification) error {
if a.UnstableDidChangeDocumentFunc != nil {
return a.UnstableDidChangeDocumentFunc(ctx, params)
Expand Down
19 changes: 0 additions & 19 deletions agent_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions client_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion constants_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions example/agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ func (a *exampleAgent) SetSessionConfigOption(ctx context.Context, params acp.Se
return acp.SetSessionConfigOptionResponse{}, acp.NewMethodNotFound(acp.AgentMethodSessionSetConfigOption)
}

// UnstableSetSessionModel implements acp.AgentExperimental.
func (a *exampleAgent) UnstableSetSessionModel(ctx context.Context, params acp.UnstableSetSessionModelRequest) (acp.UnstableSetSessionModelResponse, error) {
return acp.UnstableSetSessionModelResponse{}, acp.NewMethodNotFound(acp.AgentMethodSessionSetModel)
}

// UnstableDidChangeDocument implements acp.AgentExperimental.
func (a *exampleAgent) UnstableDidChangeDocument(ctx context.Context, params acp.UnstableDidChangeDocumentNotification) error {
return nil
Expand Down
3 changes: 1 addition & 2 deletions schema/meta.unstable.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
"session_prompt": "session/prompt",
"session_resume": "session/resume",
"session_set_config_option": "session/set_config_option",
"session_set_mode": "session/set_mode",
"session_set_model": "session/set_model"
"session_set_mode": "session/set_mode"
},
"clientMethods": {
"elicitation_complete": "elicitation/complete",
Expand Down
Loading