Skip to content
Merged
Show file tree
Hide file tree
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
12 changes: 12 additions & 0 deletions src/llama_stack_client/resources/agents/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ def create(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> AgentCreateResponse:
"""
Create an agent with the given configuration.

Args:
agent_config: The configuration for the agent.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -123,6 +127,8 @@ def delete(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> None:
"""
Delete an agent by its ID.

Args:
extra_headers: Send extra headers

Expand Down Expand Up @@ -188,7 +194,11 @@ async def create(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> AgentCreateResponse:
"""
Create an agent with the given configuration.

Args:
agent_config: The configuration for the agent.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -218,6 +228,8 @@ async def delete(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> None:
"""
Delete an agent by its ID.

Args:
extra_headers: Send extra headers

Expand Down
20 changes: 20 additions & 0 deletions src/llama_stack_client/resources/agents/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ def create(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> SessionCreateResponse:
"""
Create a new session for an agent.

Args:
session_name: The name of the session to create.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -94,7 +98,11 @@ def retrieve(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Session:
"""
Retrieve an agent session by its ID.

Args:
turn_ids: (Optional) List of turn IDs to filter the session by.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -132,6 +140,8 @@ def delete(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> None:
"""
Delete an agent session by its ID.

Args:
extra_headers: Send extra headers

Expand Down Expand Up @@ -188,7 +198,11 @@ async def create(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> SessionCreateResponse:
"""
Create a new session for an agent.

Args:
session_name: The name of the session to create.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -222,7 +236,11 @@ async def retrieve(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Session:
"""
Retrieve an agent session by its ID.

Args:
turn_ids: (Optional) List of turn IDs to filter the session by.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -262,6 +280,8 @@ async def delete(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> None:
"""
Delete an agent session by its ID.

Args:
extra_headers: Send extra headers

Expand Down
4 changes: 4 additions & 0 deletions src/llama_stack_client/resources/agents/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def retrieve(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> StepRetrieveResponse:
"""
Retrieve an agent step by its ID.

Args:
extra_headers: Send extra headers

Expand Down Expand Up @@ -115,6 +117,8 @@ async def retrieve(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> StepRetrieveResponse:
"""
Retrieve an agent step by its ID.

Args:
extra_headers: Send extra headers

Expand Down
Loading