Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/llama_stack_client/types/shared_params/agent_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ class ToolgroupUnionMember1(TypedDict, total=False):

Toolgroup: TypeAlias = Union[str, ToolgroupUnionMember1]

class ToolConfig(TypedDict, total=False):
tool_choice: Literal["auto", "required"]
tool_prompt_format: Literal["json", "function_tag", "python_list"]
system_message_behavior: Literal["append", "replace"]


class AgentConfig(TypedDict, total=False):
enable_session_persistence: Required[bool]
Expand All @@ -40,8 +45,12 @@ class AgentConfig(TypedDict, total=False):

sampling_params: SamplingParams

# DEPRECATED: use tool_config instead
tool_choice: Literal["auto", "required"]

# DEPRECATED: use tool_config instead
tool_prompt_format: Literal["json", "function_tag", "python_list"]

toolgroups: List[Toolgroup]

tool_config: ToolConfig