Skip to content

Conversation

Copy link

Copilot AI commented Jan 31, 2026

Agent examples needed to use claude-sonnet-4.5 as the default model, and both should be non-interactive autonomous demos.

Changes

  • Model: Both examples/agent and examples/agent-with-tools now use claude-sonnet-4.5
  • agent-with-tools refactor: Converted from interactive stdin loop to autonomous agent demo
    • Replaced CompleteWithTools with ExecuteWithTools for proper agent loop execution
    • Takes task from CLI args or uses default task
    • Runs to completion without user interaction
    • Added exit tool for proper termination

Usage

# examples/agent
go run main.go "List files in the current directory"

# examples/agent-with-tools  
go run main.go "What is the current time and calculate 42 * 17?"
Original prompt

Change the go agent sdk examples to use claude-sonnet-4.5 as the default agent model in the examples. This should only affected the agent examples. Furthremorem while agent example demonstrate a simple loop without interactivigty the agent-with-tools example is an interactive demo. In both cases we need an agent demo - i.e. something that run automatically without interactivity.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…ractive

Co-authored-by: pdparchitect <5363404+pdparchitect@users.noreply.github.com>
Copilot AI changed the title [WIP] Change default agent model to claude-sonnet-4.5 in examples Update agent examples to use claude-sonnet-4.5 and make non-interactive Jan 31, 2026
Copilot AI requested a review from pdparchitect January 31, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants