@@ -59,7 +59,7 @@ func (a *Agent) Stop(ctx context.Context) {
5959 }
6060}
6161
62- // SetConnection sets the ACP connection
62+ // SetAgentConnection sets the ACP connection
6363func (a * Agent ) SetAgentConnection (conn * acp.AgentSideConnection ) {
6464 a .conn = conn
6565}
@@ -325,7 +325,7 @@ func (a *Agent) handleToolCallConfirmation(ctx context.Context, acpSess *Session
325325func (a * Agent ) handleMaxIterationsReached (ctx context.Context , acpSess * Session , e * runtime.MaxIterationsReachedEvent ) error {
326326 permResp , err := a .conn .RequestPermission (ctx , acp.RequestPermissionRequest {
327327 SessionId : acp .SessionId (acpSess .id ),
328- ToolCall : acp.ToolCallUpdate {
328+ ToolCall : acp.RequestPermissionToolCall {
329329 ToolCallId : acp .ToolCallId ("max_iterations" ),
330330 Title : acp .Ptr (fmt .Sprintf ("Maximum iterations (%d) reached" , e .MaxIterations )),
331331 Kind : acp .Ptr (acp .ToolKindExecute ),
@@ -391,7 +391,7 @@ func buildToolCallComplete(toolCall tools.ToolCall, output string) acp.SessionUp
391391}
392392
393393// buildToolCallUpdate creates a tool call update for permission requests
394- func buildToolCallUpdate (toolCall tools.ToolCall , tool tools.Tool , status acp.ToolCallStatus ) acp.ToolCallUpdate {
394+ func buildToolCallUpdate (toolCall tools.ToolCall , tool tools.Tool , status acp.ToolCallStatus ) acp.RequestPermissionToolCall {
395395 kind := acp .ToolKindExecute
396396 title := tool .Annotations .Title
397397 if title == "" {
@@ -402,7 +402,7 @@ func buildToolCallUpdate(toolCall tools.ToolCall, tool tools.Tool, status acp.To
402402 kind = acp .ToolKindRead
403403 }
404404
405- return acp.ToolCallUpdate {
405+ return acp.RequestPermissionToolCall {
406406 ToolCallId : acp .ToolCallId (toolCall .ID ),
407407 Title : acp .Ptr (title ),
408408 Kind : acp .Ptr (kind ),
0 commit comments