mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
fix: add AnthropicTaskBudget TypedDict and task_budget field to AnthropicOutputConfig
This commit is contained in:
parent
b8f7d61400
commit
e55266e340
1 changed files with 8 additions and 0 deletions
|
|
@ -36,10 +36,18 @@ class AnthropicOutputSchema(TypedDict, total=False):
|
|||
schema: Required[dict]
|
||||
|
||||
|
||||
class AnthropicTaskBudget(TypedDict, total=False):
|
||||
"""Token budget for an agentic task loop (task-budgets-2026-03-13 beta)."""
|
||||
|
||||
type: Required[Literal["tokens"]]
|
||||
total: Required[int]
|
||||
|
||||
|
||||
class AnthropicOutputConfig(TypedDict, total=False):
|
||||
"""Configuration for controlling Claude's output behavior."""
|
||||
|
||||
effort: Literal["high", "medium", "low"]
|
||||
task_budget: AnthropicTaskBudget
|
||||
|
||||
|
||||
class AnthropicMessagesTool(TypedDict, total=False):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue