Skip to content

Commit e33aa4a

Browse files
ehhuangEric Huang (AI Platform)
andauthored
chore: Sync updates from stainless branch: ehhuang/dev (#182)
# What does this PR do? [Provide a short summary of what this PR does and why. Link to relevant issues if applicable.] [//]: # (If resolving an issue, uncomment and update the line below) [//]: # (Closes #[issue-number]) ## Test Plan tested in #180 [//]: # (## Documentation) [//]: # (- [ ] Added a Changelog entry if the change is significant) Co-authored-by: Eric Huang (AI Platform) <erichuang@fb.com>
1 parent 638f7f2 commit e33aa4a

35 files changed

+355
-55
lines changed

src/llama_stack_client/resources/agents/agents.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,11 @@ def create(
9393
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
9494
) -> AgentCreateResponse:
9595
"""
96+
Create an agent with the given configuration.
97+
9698
Args:
99+
agent_config: The configuration for the agent.
100+
97101
extra_headers: Send extra headers
98102
99103
extra_query: Add additional query parameters to the request
@@ -123,6 +127,8 @@ def delete(
123127
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
124128
) -> None:
125129
"""
130+
Delete an agent by its ID.
131+
126132
Args:
127133
extra_headers: Send extra headers
128134
@@ -188,7 +194,11 @@ async def create(
188194
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
189195
) -> AgentCreateResponse:
190196
"""
197+
Create an agent with the given configuration.
198+
191199
Args:
200+
agent_config: The configuration for the agent.
201+
192202
extra_headers: Send extra headers
193203
194204
extra_query: Add additional query parameters to the request
@@ -218,6 +228,8 @@ async def delete(
218228
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
219229
) -> None:
220230
"""
231+
Delete an agent by its ID.
232+
221233
Args:
222234
extra_headers: Send extra headers
223235

src/llama_stack_client/resources/agents/session.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ def create(
6060
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
6161
) -> SessionCreateResponse:
6262
"""
63+
Create a new session for an agent.
64+
6365
Args:
66+
session_name: The name of the session to create.
67+
6468
extra_headers: Send extra headers
6569
6670
extra_query: Add additional query parameters to the request
@@ -94,7 +98,11 @@ def retrieve(
9498
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
9599
) -> Session:
96100
"""
101+
Retrieve an agent session by its ID.
102+
97103
Args:
104+
turn_ids: (Optional) List of turn IDs to filter the session by.
105+
98106
extra_headers: Send extra headers
99107
100108
extra_query: Add additional query parameters to the request
@@ -132,6 +140,8 @@ def delete(
132140
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
133141
) -> None:
134142
"""
143+
Delete an agent session by its ID.
144+
135145
Args:
136146
extra_headers: Send extra headers
137147
@@ -188,7 +198,11 @@ async def create(
188198
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
189199
) -> SessionCreateResponse:
190200
"""
201+
Create a new session for an agent.
202+
191203
Args:
204+
session_name: The name of the session to create.
205+
192206
extra_headers: Send extra headers
193207
194208
extra_query: Add additional query parameters to the request
@@ -222,7 +236,11 @@ async def retrieve(
222236
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
223237
) -> Session:
224238
"""
239+
Retrieve an agent session by its ID.
240+
225241
Args:
242+
turn_ids: (Optional) List of turn IDs to filter the session by.
243+
226244
extra_headers: Send extra headers
227245
228246
extra_query: Add additional query parameters to the request
@@ -262,6 +280,8 @@ async def delete(
262280
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
263281
) -> None:
264282
"""
283+
Delete an agent session by its ID.
284+
265285
Args:
266286
extra_headers: Send extra headers
267287

src/llama_stack_client/resources/agents/steps.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ def retrieve(
5454
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
5555
) -> StepRetrieveResponse:
5656
"""
57+
Retrieve an agent step by its ID.
58+
5759
Args:
5860
extra_headers: Send extra headers
5961
@@ -115,6 +117,8 @@ async def retrieve(
115117
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
116118
) -> StepRetrieveResponse:
117119
"""
120+
Retrieve an agent step by its ID.
121+
118122
Args:
119123
extra_headers: Send extra headers
120124

0 commit comments

Comments
 (0)