-
Notifications
You must be signed in to change notification settings - Fork 43.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(agent/core): Add Anthropic Claude 3 support #7085
Commits on Apr 16, 2024
-
refactor(agent/core): Tweak
model_providers.schema
- Fix type of `AssistantChatMessage.role` to match `ChatMessage.role` (str -> `ChatMessage.Role`) - Simplify `ModelProviderUsage` - Remove attribute `total_tokens` as it is always equal to `prompt_tokens + completion_tokens` - Modify signature of `update_usage(..)`; no longer requires a full `ModelResponse` object as input - Improve `ModelProviderBudget` - Change type of attribute `usage` to `defaultdict[str, ModelProviderUsage]` -> allow per-model usage tracking - Modify signature of `update_usage_and_cost(..)`; no longer requires a full `ModelResponse` object as input Also: - Remove unused `OpenAIChatParser` typedef in openai.py - Remove redundant `budget` attribute definition on `OpenAISettings` - Remove unnecessary `usage` in `OpenAIProvider` > `default_settings` > `budget`
Configuration menu - View commit details
-
Copy full SHA for 76e9fd1 - Browse repository at this point
Copy the full SHA 76e9fd1View commit details -
feat(agent/core): Add
AnthropicProvider
yee haw! Also: - Add `ToolResultMessage` to `model_providers.schema`
Configuration menu - View commit details
-
Copy full SHA for 7ecc459 - Browse repository at this point
Copy the full SHA 7ecc459View commit details
Commits on Apr 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 95bbda0 - Browse repository at this point
Copy the full SHA 95bbda0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 001fe75 - Browse repository at this point
Copy the full SHA 001fe75View commit details -
feat(agent/core): Add
max_output_tokens
parameter to `create_chat_c……ompletion` interface
Configuration menu - View commit details
-
Copy full SHA for 8beaedd - Browse repository at this point
Copy the full SHA 8beaeddView commit details
Commits on Apr 21, 2024
-
refactor(agent): Add
ChatModelProvider.get_available_models()
and r……emove `ApiManager`
Configuration menu - View commit details
-
Copy full SHA for d5eb79f - Browse repository at this point
Copy the full SHA d5eb79fView commit details -
refactor(agent/core): Allow
ModelProviderBudget
zero-argument insta……ntiation Also: - straighten out related model definitions - remove now-redundant `service=` arguments for `ChatModelInfo`/`EmbeddingModelInfo` usages - use `defaultdict(ModelProviderBudget)` in agent_protocol_server.py to simplify budget tracking setup
Configuration menu - View commit details
-
Copy full SHA for 0594653 - Browse repository at this point
Copy the full SHA 0594653View commit details -
refactor(agent/core): Add shared attributes and constructor to `Model…
…Provider` base class
Configuration menu - View commit details
-
Copy full SHA for 651c99d - Browse repository at this point
Copy the full SHA 651c99dView commit details -
fix(agent): Change
max_tokens
tomax_output_tokens
in `create_cha……t_completion_call` in `processing/text.py:_process_text`
Configuration menu - View commit details
-
Copy full SHA for 2da125d - Browse repository at this point
Copy the full SHA 2da125dView commit details -
feat(agent): Allow use of any available LLM provider through `MultiPr…
…ovider` - Add `MultiProvider` - Replace all references to / uses of `OpenAIProvider` with `MultiProvider` - Change type of `Config.smart_llm` and `Config.fast_llm` from `str` to `ModelName`
Configuration menu - View commit details
-
Copy full SHA for 9d38dbd - Browse repository at this point
Copy the full SHA 9d38dbdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 70c97ca - Browse repository at this point
Copy the full SHA 70c97caView commit details -
fix(agent/core): Make retry mechanism of
AnthropicProvider
specific…… to not-our-fault errors So e.g. don't retry on 400 Bad Request errors or anything else in the 4xx range
Configuration menu - View commit details
-
Copy full SHA for dcd1685 - Browse repository at this point
Copy the full SHA dcd1685View commit details -
fix(agent/core): Set
retries_per_request
to 7 by default10 was too much, caused multi-minute timeouts between retries
Configuration menu - View commit details
-
Copy full SHA for 2aa4ca5 - Browse repository at this point
Copy the full SHA 2aa4ca5View commit details
Commits on Apr 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a60854e - Browse repository at this point
Copy the full SHA a60854eView commit details
Commits on Apr 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1ae07a5 - Browse repository at this point
Copy the full SHA 1ae07a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 92ff5a4 - Browse repository at this point
Copy the full SHA 92ff5a4View commit details
Commits on Apr 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 933ec93 - Browse repository at this point
Copy the full SHA 933ec93View commit details -
Adhere to Anthropic message schema in
AnthropicProvider
parse-fix m……echanism If assistant message contains `tool_use` blocks, include required `tool_result` blocks in feedback message
Configuration menu - View commit details
-
Copy full SHA for 72d0248 - Browse repository at this point
Copy the full SHA 72d0248View commit details
Commits on Apr 25, 2024
-
feat(agent/core): Validate function call arguments in `create_chat_co…
…mpletion` - Add `validate_call` method to `CompletionModelFunction` in `model_providers.schema` - Add `validate_tool_calls` utility function in `model_providers.utils` - Add tool call validation step to `create_chat_completion` in `OpenAIProvider` and `AnthropicProvider` Also: - Remove (now redundant) command argument validation logic in agent.py and models/command.py
Configuration menu - View commit details
-
Copy full SHA for e492258 - Browse repository at this point
Copy the full SHA e492258View commit details
Commits on Apr 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d5d8bfc - Browse repository at this point
Copy the full SHA d5d8bfcView commit details
Commits on Apr 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a62ec0f - Browse repository at this point
Copy the full SHA a62ec0fView commit details
Commits on May 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6503b9e - Browse repository at this point
Copy the full SHA 6503b9eView commit details -
feat(agent): Formalize pre-filling as a global feature
- Add `prefill_response` attribute to `ChatPrompt` model - Add `prefill_response` parameter to `ChatModelProvider.create_chat_completion` and its implementations - Amend `OneShotAgentPromptStrategy` to use new pre-filling feature
Configuration menu - View commit details
-
Copy full SHA for e65b57f - Browse repository at this point
Copy the full SHA e65b57fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b32778b - Browse repository at this point
Copy the full SHA b32778bView commit details -
Configuration menu - View commit details
-
Copy full SHA for fd067a0 - Browse repository at this point
Copy the full SHA fd067a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for c10fafa - Browse repository at this point
Copy the full SHA c10fafaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 338986d - Browse repository at this point
Copy the full SHA 338986dView commit details
Commits on May 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 32fe727 - Browse repository at this point
Copy the full SHA 32fe727View commit details -
Configuration menu - View commit details
-
Copy full SHA for d2a9be0 - Browse repository at this point
Copy the full SHA d2a9be0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e197eb - Browse repository at this point
Copy the full SHA 2e197ebView commit details -
Revert "Remove problematic "final instruction message" from
OneShot
…… prompt" This reverts commit c10fafa.
Configuration menu - View commit details
-
Copy full SHA for 207957b - Browse repository at this point
Copy the full SHA 207957bView commit details -
Implement mechanism to merge subsequent user messages in `AnthropicPr…
…ovider._get_chat_completion_args`
Configuration menu - View commit details
-
Copy full SHA for 94985ef - Browse repository at this point
Copy the full SHA 94985efView commit details -
Revert "feat(agent): Enable use of tool calling API(s) by default"
This reverts commit 70c97ca.
Configuration menu - View commit details
-
Copy full SHA for 1ca8d20 - Browse repository at this point
Copy the full SHA 1ca8d20View commit details
Commits on May 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for bb4f8a2 - Browse repository at this point
Copy the full SHA bb4f8a2View commit details
Commits on May 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0f778e5 - Browse repository at this point
Copy the full SHA 0f778e5View commit details