1
- # ContextualAI
2
-
3
- Types:
4
-
5
- ``` python
6
- from contextual.types import LMUnitResponse
7
- ```
8
-
9
- Methods:
10
-
11
- - <code title =" post /lmunit " >client.<a href =" ./src/contextual/_client.py " >lmunit</a >(\*\* <a href =" src/contextual/types/client_lmunit_params.py " >params</a >) -> <a href =" ./src/contextual/types/lmunit_response.py " >LMUnitResponse</a ></code >
12
-
13
1
# Datastores
14
2
15
3
Types:
18
6
from contextual.types import (
19
7
CreateDatastoreResponse,
20
8
Datastore,
21
- DatastoresResponse ,
9
+ ListDatastoresResponse ,
22
10
DatastoreDeleteResponse,
23
11
)
24
12
```
@@ -34,12 +22,12 @@ Methods:
34
22
Types:
35
23
36
24
``` python
37
- from contextual.types.datastores import GetDatastoreResponse
25
+ from contextual.types.datastores import DatastoreMetadataResponse
38
26
```
39
27
40
28
Methods:
41
29
42
- - <code title =" get /datastores/{datastore_id}/metadata " >client.datastores.metadata.<a href =" ./src/contextual/resources/datastores/metadata.py " >retrieve</a >(datastore_id) -> <a href =" ./src/contextual/types/datastores/get_datastore_response .py " >GetDatastoreResponse </a ></code >
30
+ - <code title =" get /datastores/{datastore_id}/metadata " >client.datastores.metadata.<a href =" ./src/contextual/resources/datastores/metadata.py " >retrieve</a >(datastore_id) -> <a href =" ./src/contextual/types/datastores/datastore_metadata_response .py " >DatastoreMetadataResponse </a ></code >
43
31
44
32
## Documents
45
33
48
36
``` python
49
37
from contextual.types.datastores import (
50
38
DocumentDescription,
51
- GetDocumentsResponse,
52
39
IngestionResponse,
40
+ ListDocumentsResponse,
53
41
DocumentDeleteResponse,
54
42
)
55
43
```
68
56
``` python
69
57
from contextual.types import (
70
58
Agent,
71
- AgentsResponse,
72
59
CreateAgentOutput,
60
+ ListAgentsResponse,
73
61
AgentUpdateResponse,
74
62
AgentDeleteResponse,
75
63
)
@@ -87,12 +75,12 @@ Methods:
87
75
Types:
88
76
89
77
``` python
90
- from contextual.types.agents import GetAgentResponse
78
+ from contextual.types.agents import AgentMetadataResponse
91
79
```
92
80
93
81
Methods:
94
82
95
- - <code title =" get /agents/{agent_id}/metadata " >client.agents.metadata.<a href =" ./src/contextual/resources/agents/metadata.py " >retrieve</a >(agent_id) -> <a href =" ./src/contextual/types/agents/get_agent_response .py " >GetAgentResponse </a ></code >
83
+ - <code title =" get /agents/{agent_id}/metadata " >client.agents.metadata.<a href =" ./src/contextual/resources/agents/metadata.py " >retrieve</a >(agent_id) -> <a href =" ./src/contextual/types/agents/agent_metadata_response .py " >AgentMetadataResponse </a ></code >
96
84
97
85
## Query
98
86
@@ -154,28 +142,42 @@ Methods:
154
142
Types:
155
143
156
144
``` python
157
- from contextual.types.agents import (
158
- CreateDatasetResponse,
159
- DatasetsResponse,
160
- GetDatasetResponse,
161
- DatasetRetrieveResponse,
162
- DatasetDeleteResponse,
163
- )
145
+ from contextual.types.agents import CreateDatasetResponse, DatasetResponse, ListDatasetsResponse
146
+ ```
147
+
148
+ ### Tune
149
+
150
+ Types:
151
+
152
+ ``` python
153
+ from contextual.types.agents.datasets import TuneDeleteResponse
164
154
```
165
155
166
156
Methods:
167
157
168
- - <code title =" post /agents/{agent_id}/datasets " >client.agents.datasets.<a href =" ./src/contextual/resources/agents/datasets/datasets.py " >create</a >(agent_id, \*\* <a href =" src/contextual/types/agents/dataset_create_params.py " >params</a >) -> <a href =" ./src/contextual/types/agents/create_dataset_response.py " >CreateDatasetResponse</a ></code >
169
- - <code title =" get /agents/{agent_id}/datasets/{dataset_name} " >client.agents.datasets.<a href =" ./src/contextual/resources/agents/datasets/datasets.py " >retrieve</a >(dataset_name, \* , agent_id, \*\* <a href =" src/contextual/types/agents/dataset_retrieve_params.py " >params</a >) -> <a href =" ./src/contextual/types/agents/dataset_retrieve_response.py " >object</a ></code >
170
- - <code title =" put /agents/{agent_id}/datasets/{dataset_name} " >client.agents.datasets.<a href =" ./src/contextual/resources/agents/datasets/datasets.py " >update</a >(dataset_name, \* , agent_id, \*\* <a href =" src/contextual/types/agents/dataset_update_params.py " >params</a >) -> <a href =" ./src/contextual/types/agents/create_dataset_response.py " >CreateDatasetResponse</a ></code >
171
- - <code title =" get /agents/{agent_id}/datasets " >client.agents.datasets.<a href =" ./src/contextual/resources/agents/datasets/datasets.py " >list</a >(agent_id, \*\* <a href =" src/contextual/types/agents/dataset_list_params.py " >params</a >) -> <a href =" ./src/contextual/types/agents/datasets_response.py " >DatasetsResponse</a ></code >
172
- - <code title =" delete /agents/{agent_id}/datasets/{dataset_name} " >client.agents.datasets.<a href =" ./src/contextual/resources/agents/datasets/datasets.py " >delete</a >(dataset_name, \* , agent_id) -> <a href =" ./src/contextual/types/agents/dataset_delete_response.py " >object</a ></code >
158
+ - <code title =" post /agents/{agent_id}/datasets/tune " >client.agents.datasets.tune.<a href =" ./src/contextual/resources/agents/datasets/tune.py " >create</a >(agent_id, \*\* <a href =" src/contextual/types/agents/datasets/tune_create_params.py " >params</a >) -> <a href =" ./src/contextual/types/agents/create_dataset_response.py " >CreateDatasetResponse</a ></code >
159
+ - <code title =" get /agents/{agent_id}/datasets/tune/{dataset_name} " >client.agents.datasets.tune.<a href =" ./src/contextual/resources/agents/datasets/tune.py " >retrieve</a >(dataset_name, \* , agent_id, \*\* <a href =" src/contextual/types/agents/datasets/tune_retrieve_params.py " >params</a >) -> BinaryAPIResponse</code >
160
+ - <code title =" put /agents/{agent_id}/datasets/tune/{dataset_name} " >client.agents.datasets.tune.<a href =" ./src/contextual/resources/agents/datasets/tune.py " >update</a >(dataset_name, \* , agent_id, \*\* <a href =" src/contextual/types/agents/datasets/tune_update_params.py " >params</a >) -> <a href =" ./src/contextual/types/agents/create_dataset_response.py " >CreateDatasetResponse</a ></code >
161
+ - <code title =" get /agents/{agent_id}/datasets/tune " >client.agents.datasets.tune.<a href =" ./src/contextual/resources/agents/datasets/tune.py " >list</a >(agent_id, \*\* <a href =" src/contextual/types/agents/datasets/tune_list_params.py " >params</a >) -> <a href =" ./src/contextual/types/agents/list_datasets_response.py " >ListDatasetsResponse</a ></code >
162
+ - <code title =" delete /agents/{agent_id}/datasets/tune/{dataset_name} " >client.agents.datasets.tune.<a href =" ./src/contextual/resources/agents/datasets/tune.py " >delete</a >(dataset_name, \* , agent_id) -> <a href =" ./src/contextual/types/agents/datasets/tune_delete_response.py " >object</a ></code >
163
+ - <code title =" get /agents/{agent_id}/datasets/tune/{dataset_name}/metadata " >client.agents.datasets.tune.<a href =" ./src/contextual/resources/agents/datasets/tune.py " >metadata</a >(dataset_name, \* , agent_id, \*\* <a href =" src/contextual/types/agents/datasets/tune_metadata_params.py " >params</a >) -> <a href =" ./src/contextual/types/agents/dataset_response.py " >DatasetResponse</a ></code >
164
+
165
+ ### Evaluation
166
+
167
+ Types:
173
168
174
- ### Metadata
169
+ ``` python
170
+ from contextual.types.agents.datasets import EvaluationDeleteResponse
171
+ ```
175
172
176
173
Methods:
177
174
178
- - <code title =" get /agents/{agent_id}/datasets/{dataset_name}/metadata " >client.agents.datasets.metadata.<a href =" ./src/contextual/resources/agents/datasets/metadata.py " >retrieve</a >(dataset_name, \* , agent_id, \*\* <a href =" src/contextual/types/agents/datasets/metadata_retrieve_params.py " >params</a >) -> <a href =" ./src/contextual/types/agents/get_dataset_response.py " >GetDatasetResponse</a ></code >
175
+ - <code title =" post /agents/{agent_id}/datasets/evaluation " >client.agents.datasets.evaluation.<a href =" ./src/contextual/resources/agents/datasets/evaluation.py " >create</a >(agent_id, \*\* <a href =" src/contextual/types/agents/datasets/evaluation_create_params.py " >params</a >) -> <a href =" ./src/contextual/types/agents/create_dataset_response.py " >CreateDatasetResponse</a ></code >
176
+ - <code title =" get /agents/{agent_id}/datasets/evaluation/{dataset_name} " >client.agents.datasets.evaluation.<a href =" ./src/contextual/resources/agents/datasets/evaluation.py " >retrieve</a >(dataset_name, \* , agent_id, \*\* <a href =" src/contextual/types/agents/datasets/evaluation_retrieve_params.py " >params</a >) -> BinaryAPIResponse</code >
177
+ - <code title =" put /agents/{agent_id}/datasets/evaluation/{dataset_name} " >client.agents.datasets.evaluation.<a href =" ./src/contextual/resources/agents/datasets/evaluation.py " >update</a >(dataset_name, \* , agent_id, \*\* <a href =" src/contextual/types/agents/datasets/evaluation_update_params.py " >params</a >) -> <a href =" ./src/contextual/types/agents/create_dataset_response.py " >CreateDatasetResponse</a ></code >
178
+ - <code title =" get /agents/{agent_id}/datasets/evaluation " >client.agents.datasets.evaluation.<a href =" ./src/contextual/resources/agents/datasets/evaluation.py " >list</a >(agent_id, \*\* <a href =" src/contextual/types/agents/datasets/evaluation_list_params.py " >params</a >) -> <a href =" ./src/contextual/types/agents/list_datasets_response.py " >ListDatasetsResponse</a ></code >
179
+ - <code title =" delete /agents/{agent_id}/datasets/evaluation/{dataset_name} " >client.agents.datasets.evaluation.<a href =" ./src/contextual/resources/agents/datasets/evaluation.py " >delete</a >(dataset_name, \* , agent_id) -> <a href =" ./src/contextual/types/agents/datasets/evaluation_delete_response.py " >object</a ></code >
180
+ - <code title =" get /agents/{agent_id}/datasets/evaluation/{dataset_name}/metadata " >client.agents.datasets.evaluation.<a href =" ./src/contextual/resources/agents/datasets/evaluation.py " >metadata</a >(dataset_name, \* , agent_id, \*\* <a href =" src/contextual/types/agents/datasets/evaluation_metadata_params.py " >params</a >) -> <a href =" ./src/contextual/types/agents/dataset_response.py " >DatasetResponse</a ></code >
179
181
180
182
## Tune
181
183
@@ -194,23 +196,19 @@ Methods:
194
196
Types:
195
197
196
198
``` python
197
- from contextual.types.agents.tune import (
198
- GetTuneJobResponse,
199
- ListGetTuneJobResponse,
200
- JobDeleteResponse,
201
- )
199
+ from contextual.types.agents.tune import ListTuneJobsResponse, TuneJobResponse, JobDeleteResponse
202
200
```
203
201
204
202
Methods:
205
203
206
- - <code title =" get /agents/{agent_id}/tune/jobs " >client.agents.tune.jobs.<a href =" ./src/contextual/resources/agents/tune/jobs/jobs.py " >list</a >(agent_id) -> <a href =" ./src/contextual/types/agents/tune/list_get_tune_job_response .py " >ListGetTuneJobResponse </a ></code >
204
+ - <code title =" get /agents/{agent_id}/tune/jobs " >client.agents.tune.jobs.<a href =" ./src/contextual/resources/agents/tune/jobs/jobs.py " >list</a >(agent_id) -> <a href =" ./src/contextual/types/agents/tune/list_tune_jobs_response .py " >ListTuneJobsResponse </a ></code >
207
205
- <code title =" delete /agents/{agent_id}/tune/jobs/{job_id} " >client.agents.tune.jobs.<a href =" ./src/contextual/resources/agents/tune/jobs/jobs.py " >delete</a >(job_id, \* , agent_id) -> <a href =" ./src/contextual/types/agents/tune/job_delete_response.py " >object</a ></code >
208
206
209
207
#### Metadata
210
208
211
209
Methods:
212
210
213
- - <code title =" get /agents/{agent_id}/tune/jobs/{job_id}/metadata " >client.agents.tune.jobs.metadata.<a href =" ./src/contextual/resources/agents/tune/jobs/metadata.py " >retrieve</a >(job_id, \* , agent_id) -> <a href =" ./src/contextual/types/agents/tune/get_tune_job_response .py " >GetTuneJobResponse </a ></code >
211
+ - <code title =" get /agents/{agent_id}/tune/jobs/{job_id}/metadata " >client.agents.tune.jobs.metadata.<a href =" ./src/contextual/resources/agents/tune/jobs/metadata.py " >retrieve</a >(job_id, \* , agent_id) -> <a href =" ./src/contextual/types/agents/tune/tune_job_response .py " >TuneJobResponse </a ></code >
214
212
215
213
### Models
216
214
@@ -223,3 +221,15 @@ from contextual.types.agents.tune import ModelListResponse
223
221
Methods:
224
222
225
223
- <code title =" get /agents/{agent_id}/tune/models " >client.agents.tune.models.<a href =" ./src/contextual/resources/agents/tune/models.py " >list</a >(agent_id) -> <a href =" ./src/contextual/types/agents/tune/model_list_response.py " >ModelListResponse</a ></code >
224
+
225
+ # LMUnit
226
+
227
+ Types:
228
+
229
+ ``` python
230
+ from contextual.types import LMUnitCreateResponse
231
+ ```
232
+
233
+ Methods:
234
+
235
+ - <code title =" post /lmunit " >client.lmunit.<a href =" ./src/contextual/resources/lmunit.py " >create</a >(\*\* <a href =" src/contextual/types/lmunit_create_params.py " >params</a >) -> <a href =" ./src/contextual/types/lmunit_create_response.py " >LMUnitCreateResponse</a ></code >
0 commit comments