Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to official anthropic golang client. Add inital support for imag…
…es and tool use. (#272) * feat: Add image support for Anthropic API client with type validation * feat: Add Anthropic support to custom instructions in system console * test: Add test file for Anthropic AI integration * test: Add comprehensive unit tests for conversationToMessages function * feat: Update Anthropic tests to match content block structure * refactor: Improve code formatting and whitespace in Anthropic test file * fix: Update test to expect simple string content for single text block * test: Add complex test cases for conversation message handling * Aider * lint * refactor: Migrate Anthropic client to use official SDK * feat: Add Anthropic SDK imports and context package * feat: Update Anthropic SDK integration with correct type handling * fix: Resolve Anthropic SDK type mismatch compilation errors * Add offical anthropic go sdk * Remove old custom anthropic client * refactor: Update Anthropic tests to use Anthropic SDK message types * test: Add initial test setup for Anthropic AI client * fix: Update Anthropic SDK test types and message parameters * fix: Update Anthropic SDK message role types in test cases * fix: Replace string literals with Anthropic SDK message role constants * refactor: Simplify ChatCompletionNoStream by reusing ChatCompletion method * refactor: Implement tool resolution for Anthropic chat completion * fix: Resolve Anthropic SDK type and function call mismatches * feat: Add tools configuration to Anthropic streaming request * feat: Add tool conversion function for Anthropic SDK compatibility * refactor: Update Anthropic SDK tool conversion and minor code formatting * fix: Correct Anthropic SDK tool conversion type mismatches * refactor: Improve tool schema conversion using jsonschema reflector * refactor: Update Anthropic SDK tool conversion with type assertion * refactor: Optimize channel management in Anthropic tool resolution * refactor: Consolidate state management in Anthropic chat completion * refactor: Extract tool resolver to simplify conversation parameter handling * refactor: Simplify tool resolution by including resolver in messageState * refactor: Rename handleToolResolution to streamChatWithTools for clarity * refactor: Fix indentation and whitespace in Anthropic AI code * refactor: Simplify message handling in Anthropic chat completion * refactor: Update Anthropic chat state handling with messages and context * refactor: Update Anthropic chat flow to handle system messages directly * refactor: Simplify conversationToMessages to take posts directly * refactor: Remove tool results handling in Anthropic conversation conversion * refactor: Simplify streamChatWithTools by removing goroutine and improving error handling * refactor: Modify tool result handling in Anthropic chat streaming * fix: update test to pass Posts slice to conversationToMessages * Lint
- Loading branch information