Commit Graph

6 Commits

Author SHA1 Message Date
Alex Notov
9bcc95e316 feat: Add Claude Haiku 4.5 model support across all demos (#299)
* feat: add Claude Haiku 4.5 model support across all demos

- Add HAIKU_4_5 model configuration to Computer Use Demo
- Add provider-specific model strings for Bedrock and Vertex
- Update model dropdowns in Customer Support and Financial Data Analyst
- Set Claude Haiku 4.5 as default in Customer Support Agent
- Document available models in Agents module
- Update README with Claude 4.5 Haiku availability

Model IDs:
- Anthropic API: claude-haiku-4-5-20251001
- AWS Bedrock: anthropic.claude-haiku-4-5-20251001-v1:0
- Google Vertex: claude-haiku-4-5@20251001

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* docs: update Claude model naming conventions in README

Update model naming to follow proper conventions:
- Claude 4+ models: Claude [model] [version] (e.g., Claude Sonnet 4.5)
- Pre-4 models: Claude [version] [model] (e.g., Claude 3.5 Sonnet)

This ensures consistency with Anthropic's official naming standards.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-15 14:32:31 -04:00
Alex Notov
77346eda1e Update to Claude API naming conventions (#293)
* Update naming conventions: Anthropic API → Claude API

- Replace "Anthropic API" with "Claude API" across documentation
- Update "Anthropic Console" to "Claude Console"
- Change console.anthropic.com URLs to platform.claude.com
- Update docs.anthropic.com URLs to docs.claude.com
- Maintain ANTHROPIC_API_KEY environment variable unchanged
- Preserve "Anthropic" when referring to the company

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Fix CI configuration to properly isolate test workflows

- Update tests.yaml to only check computer-use-demo files
- Add explicit src and working-directory parameters to ruff and pyright
- Create separate tests-agents.yaml for agents module testing
- This prevents PR #293 from failing due to unrelated test failures

The issue was that the CI was running tests on all files in the repo
when triggered by changes to computer-use-demo, causing failures from
pre-existing issues in the agents module that are unrelated to the
naming convention updates in PR #293.

* Fix CI workflow path configurations

- Remove working-directory defaults and use explicit paths instead
- Fix ruff src paths to use correct relative paths
- Update pip install and test execution to use proper directory navigation
- This should resolve the import errors and path issues in CI

* Revert workflow workarounds to apply proper fix

Reverting:
- 78353d4 Fix CI workflow path configurations
- 92ab730 Fix CI configuration to properly isolate test workflows

These were workarounds. The proper fix is to add src parameter to ruff
in tests.yaml to scope it to computer-use-demo directory only.

* Fix CI checks by scoping ruff to computer-use-demo and fixing type issues

- Add src parameter to ruff-action to only check computer-use-demo directory
- Fix pyright errors in loop.py by using .get() and proper type casting
- No logic changes, only type safety improvements

* Fix pyright configuration and type errors in loop.py

- Add working-directory parameter to pyright-action to scope checks to computer-use-demo
- Fix type errors in loop.py by using proper isinstance checks and type casting
- Use .get() for safe dictionary access and cast to BetaToolUseBlockParam
- Replace .pop() with conditional del for cache_control removal

* Revert platform.claude.com URLs to console.anthropic.com

Per team request to hold off on the console URL migration until 12/16.
Keeping all other naming convention updates (Claude API, Claude Console text)
but reverting URLs back to console.anthropic.com.

* Update branding from "Anthropic Quickstarts" to "Claude Quickstarts"

Updated repository documentation to use "Claude Quickstarts" instead of "Anthropic Quickstarts" for consistency with Claude product branding. Repository URLs remain unchanged.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-09-17 11:24:37 -06:00
Alex Notov
e697a87c4e Fix CI failures in agents module (#294)
- Fix test_message_params.py: Update tests to handle agent.run() returning list format
- Fix mcp_tool.py: Add missing MCPConnection import
- Fix agent.py: Properly merge extra_headers to avoid conflicts with beta headers

These fixes resolve pyright type errors and ruff linting issues that were
causing CI failures on PR #293.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-09-16 18:38:13 -06:00
Stephanie Pang
a78013a3c8 [agents] Add server tools (#279)
* add server tools

* notebook
2025-06-26 08:57:52 -07:00
Ethan Dixon
44c2b5c97d agents update to accept additional message params + tests (#277) 2025-06-04 10:43:43 -07:00
Yijing Barry Zhang
1ee478a2c2 lightweight educational repo for agents (#256) 2025-04-06 13:40:28 -04:00