Skip to content

Commit 8a79017

Browse files
committed
chore: update to latest package version.
1 parent 7284826 commit 8a79017

File tree

4 files changed

+131
-7
lines changed

4 files changed

+131
-7
lines changed

Diff for: docs/pages/client_sdk/acp_sdk.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,21 @@ pip install agntcy-acp
2828
### Usage
2929

3030
```python
31-
from agntcy_acp import AsyncACPClient, ApiException
31+
from agntcy_acp import AsyncACPClient, AsyncApiClient, ApiException
3232
from agntcy_acp.models import RunCreate
3333

3434
# Defining the host is optional and defaults to http://localhost
35-
client = AsyncACPClient.fromConfiguration(
35+
config = ApiClientConfiguration(
3636
host="https://localhost:8081/",
37-
api_key="super-secure-api-key-hash",
37+
api_key={"x-api-key": os.environ["API_KEY"]},
3838
retries=3
3939
)
40+
4041
# Enter a context with an instance of the API client
41-
async with client:
42+
async with AsyncApiClient(config) as api_client:
4243
agent_id = 'agent_id_example' # str | The ID of the agent.
43-
44+
client = AsyncACPClient(api_client)
45+
4446
try:
4547
api_response = client.create_run(RunCreate(agent_id="my-agent-id"))
4648
print(f"Run {api_response.run_id} is currently {api_response.status}")

Diff for: docs/pages/client_sdk/models.rst

+80
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,41 @@ API Models
4242
.. autopydantic_model:: agntcy_acp.models.AgentSearchRequest
4343
:members:
4444

45+
``Config``
46+
***************************************
47+
.. autopydantic_model:: agntcy_acp.models.Config
48+
:members:
49+
50+
``Content``
51+
***************************************
52+
.. autopydantic_model:: agntcy_acp.models.Content
53+
:members:
54+
55+
``ContentOneOfInner``
56+
***************************************
57+
.. autopydantic_model:: agntcy_acp.models.ContentOneOfInner
58+
:members:
59+
4560
``CustomRunResultUpdate``
4661
***************************************
4762
.. autopydantic_model:: agntcy_acp.models.CustomRunResultUpdate
4863
:members:
4964

65+
``Message``
66+
***************************************
67+
.. autopydantic_model:: agntcy_acp.models.Message
68+
:members:
69+
70+
``MessageAnyBlock``
71+
***************************************
72+
.. autopydantic_model:: agntcy_acp.models.MessageAnyBlock
73+
:members:
74+
75+
``MessageTextBlock``
76+
***************************************
77+
.. autopydantic_model:: agntcy_acp.models.MessageTextBlock
78+
:members:
79+
5080
``Run``
5181
***************************************
5282
.. autopydantic_model:: agntcy_acp.models.Run
@@ -57,6 +87,21 @@ API Models
5787
.. autopydantic_model:: agntcy_acp.models.RunCreate
5888
:members:
5989

90+
``RunCreateStateful``
91+
***************************************
92+
.. autopydantic_model:: agntcy_acp.models.RunCreateStateful
93+
:members:
94+
95+
``RunCreateStateless``
96+
***************************************
97+
.. autopydantic_model:: agntcy_acp.models.RunCreateStateless
98+
:members:
99+
100+
``RunCreation``
101+
***************************************
102+
.. autopydantic_model:: agntcy_acp.models.RunCreation
103+
:members:
104+
60105
``RunError``
61106
***************************************
62107
.. autopydantic_model:: agntcy_acp.models.RunError
@@ -92,11 +137,21 @@ API Models
92137
.. autoclass:: agntcy_acp.models.RunStatus
93138
:members:
94139

140+
``RunWaitResponse``
141+
***************************************
142+
.. autopydantic_model:: agntcy_acp.models.RunWaitResponse
143+
:members:
144+
95145
``StreamEventPayload``
96146
***************************************
97147
.. autopydantic_model:: agntcy_acp.models.StreamEventPayload
98148
:members:
99149

150+
``StreamMode``
151+
***************************************
152+
.. autopydantic_model:: agntcy_acp.models.StreamMode
153+
:members:
154+
100155
``StreamingMode``
101156
***************************************
102157
.. autoclass:: agntcy_acp.models.StreamingMode
@@ -112,12 +167,37 @@ API Models
112167
.. autopydantic_model:: agntcy_acp.models.Thread
113168
:members:
114169

170+
``ThreadCheckpoint``
171+
***************************************
172+
.. autopydantic_model:: agntcy_acp.models.ThreadCheckpoint
173+
:members:
174+
115175
``ThreadCreate``
116176
***************************************
117177
.. autopydantic_model:: agntcy_acp.models.ThreadCreate
118178
:members:
119179

180+
``ThreadPatch``
181+
***************************************
182+
.. autopydantic_model:: agntcy_acp.models.ThreadPatch
183+
:members:
184+
120185
``ThreadSearchRequest``
121186
***************************************
122187
.. autopydantic_model:: agntcy_acp.models.ThreadSearchRequest
123188
:members:
189+
190+
``ThreadState``
191+
***************************************
192+
.. autopydantic_model:: agntcy_acp.models.ThreadState
193+
:members:
194+
195+
``ThreadStatus``
196+
***************************************
197+
.. autoclass:: agntcy_acp.models.ThreadStatus
198+
:members:
199+
200+
``ValueRunResultUpdate``
201+
***************************************
202+
.. autopydantic_model:: agntcy_acp.models.ValueRunResultUpdate
203+
:members:

Diff for: docs/pages/client_sdk/reference.rst

+43-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Exceptions
2828
------------
2929

3030
``ACPDescriptorValidationException``
31-
*****************************
31+
**************************************
3232
.. autoclass:: agntcy_acp.ACPDescriptorValidationException
3333
:members:
3434
:inherited-members:
@@ -69,6 +69,48 @@ Exceptions
6969
:members:
7070
:inherited-members:
7171

72+
``BadRequestException``
73+
*****************************
74+
.. autoclass:: agntcy_acp.ApiException
75+
:members:
76+
:inherited-members:
77+
78+
``NotFoundException``
79+
*****************************
80+
.. autoclass:: agntcy_acp.ApiException
81+
:members:
82+
:inherited-members:
83+
84+
``UnauthorizedException``
85+
*****************************
86+
.. autoclass:: agntcy_acp.ApiException
87+
:members:
88+
:inherited-members:
89+
90+
``ForbiddenException``
91+
*****************************
92+
.. autoclass:: agntcy_acp.ApiException
93+
:members:
94+
:inherited-members:
95+
96+
``ServiceException``
97+
*****************************
98+
.. autoclass:: agntcy_acp.ApiException
99+
:members:
100+
:inherited-members:
101+
102+
``ConflictException(ApiException``
103+
************************************
104+
.. autoclass:: agntcy_acp.ApiException
105+
:members:
106+
:inherited-members:
107+
108+
``UnprocessableEntityException``
109+
************************************
110+
.. autoclass:: agntcy_acp.ApiException
111+
:members:
112+
:inherited-members:
113+
72114
``OpenApiException``
73115
*****************************
74116
.. autoclass:: agntcy_acp.OpenApiException

Diff for: docs/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ recommonmark==0.7.1 # MIT
77
myst-parser==4.0.1 # MIT
88
sphinx-inline-tabs==2023.4.21 # MIT
99
sphinxemoji==0.2.0 # BSD-3-Clause
10-
agntcy-acp==0.1.0a3 # Apache 2.0
10+
agntcy-acp==1.0.0a0.dev1 # Apache 2.0
1111
autodoc_pydantic==2.2.0 # MIT

0 commit comments

Comments
 (0)