12
12
<dl >
13
13
<dd >
14
14
15
- Create a new copilot . The API key used will be added to the copilot for future Requests
15
+ Create a new agent . The API key used will be added to the agent for future Requests
16
16
</dd >
17
17
</dl >
18
18
</dd >
@@ -34,8 +34,8 @@ client = CredalApi(
34
34
api_key = " YOUR_API_KEY" ,
35
35
)
36
36
client.copilots.create_copilot(
37
- name = " Customer Copilot " ,
38
- description = " This copilot is used to answer customer requests based on internal documentation." ,
37
+ name = " Customer Agent " ,
38
+ description = " This agent is used to answer customer requests based on internal documentation." ,
39
39
collaborators = [
40
40
Collaborator(
41
41
@@ -58,23 +58,23 @@ client.copilots.create_copilot(
58
58
<dl >
59
59
<dd >
60
60
61
- ** name:** ` str ` — A descriptive name for the copilot .
61
+ ** name:** ` str ` — A descriptive name for the agent .
62
62
63
63
</dd >
64
64
</dl >
65
65
66
66
<dl >
67
67
<dd >
68
68
69
- ** description:** ` str ` — An in depth name for the copilot 's function. Useful for routing requests to the right copilot .
69
+ ** description:** ` str ` — An in depth name for the agent 's function. Useful for routing requests to the right agent .
70
70
71
71
</dd >
72
72
</dl >
73
73
74
74
<dl >
75
75
<dd >
76
76
77
- ** collaborators:** ` typing.Sequence[Collaborator] ` — A list of collaborator emails and roles that will have access to the copilot .
77
+ ** collaborators:** ` typing.Sequence[Collaborator] ` — A list of collaborator emails and roles that will have access to the agent .
78
78
79
79
</dd >
80
80
</dl >
@@ -106,7 +106,7 @@ client.copilots.create_copilot(
106
106
<dl >
107
107
<dd >
108
108
109
- OPTIONAL. Create a new conversation with the Copilot . The conversation ID can be used in the ` sendMessage ` endpoint. The ` sendMessage ` endpoint automatically creates new conversations upon first request, but calling this endpoint can simplify certain use cases where it is helpful for the application to have the conversation ID before the first message is sent.
109
+ OPTIONAL. Create a new conversation with the Agent . The conversation ID can be used in the ` sendMessage ` endpoint. The ` sendMessage ` endpoint automatically creates new conversations upon first request, but calling this endpoint can simplify certain use cases where it is helpful for the application to have the conversation ID before the first message is sent.
110
110
</dd >
111
111
</dl >
112
112
</dd >
@@ -149,7 +149,7 @@ client.copilots.create_conversation(
149
149
<dl >
150
150
<dd >
151
151
152
- ** agent_id:** ` uuid.UUID ` — Credal-generated Copilot ID to specify which agent to route the request to.
152
+ ** agent_id:** ` uuid.UUID ` — Credal-generated Agent ID to specify which agent to route the request to.
153
153
154
154
</dd >
155
155
</dl >
@@ -227,7 +227,7 @@ client.copilots.provide_message_feedback(
227
227
<dl >
228
228
<dd >
229
229
230
- ** agent_id:** ` uuid.UUID ` — Credal-generated Copilot ID to specify which agent to route the request to.
230
+ ** agent_id:** ` uuid.UUID ` — Credal-generated Agent ID to specify which agent to route the request to.
231
231
232
232
</dd >
233
233
</dl >
@@ -335,15 +335,15 @@ client.copilots.send_message(
335
335
<dl >
336
336
<dd >
337
337
338
- ** agent_id:** ` uuid.UUID ` — Credal-generated Copilot ID to specify which agent to route the request to.
338
+ ** agent_id:** ` uuid.UUID ` — Credal-generated Agent ID to specify which agent to route the request to.
339
339
340
340
</dd >
341
341
</dl >
342
342
343
343
<dl >
344
344
<dd >
345
345
346
- ** message:** ` str ` — The message you want to send to your copilot .
346
+ ** message:** ` str ` — The message you want to send to your agent .
347
347
348
348
</dd >
349
349
</dl >
@@ -399,7 +399,7 @@ client.copilots.send_message(
399
399
<dl >
400
400
<dd >
401
401
402
- This endpoint allows you to send a message to a specific copilot and get the response back as a streamed set of Server-Sent Events.
402
+ This endpoint allows you to send a message to a specific agent and get the response back as a streamed set of Server-Sent Events.
403
403
</dd >
404
404
</dl >
405
405
</dd >
@@ -450,7 +450,7 @@ response = client.copilots.stream_message(
450
450
),
451
451
],
452
452
)
453
- for chunk in response:
453
+ for chunk in response.data :
454
454
yield chunk
455
455
456
456
```
@@ -467,15 +467,15 @@ for chunk in response:
467
467
<dl >
468
468
<dd >
469
469
470
- ** copilot_id:** ` uuid.UUID ` — Credal-generated Copilot ID to specify which agent to route the request to.
470
+ ** copilot_id:** ` uuid.UUID ` — Credal-generated Agent ID to specify which agent to route the request to.
471
471
472
472
</dd >
473
473
</dl >
474
474
475
475
<dl >
476
476
<dd >
477
477
478
- ** message:** ` str ` — The message you want to send to your copilot .
478
+ ** message:** ` str ` — The message you want to send to your agent .
479
479
480
480
</dd >
481
481
</dl >
@@ -531,7 +531,7 @@ for chunk in response:
531
531
<dl >
532
532
<dd >
533
533
534
- Link a collection with a copilot . The API Key used must be added to both the collection and the copilot beforehand.
534
+ Link a collection with a agent . The API Key used must be added to both the collection and the agent beforehand.
535
535
</dd >
536
536
</dl >
537
537
</dd >
@@ -576,7 +576,7 @@ client.copilots.add_collection_to_copilot(
576
576
<dl >
577
577
<dd >
578
578
579
- ** copilot_id:** ` uuid.UUID ` — Credal-generated copilot ID to add the collection to.
579
+ ** copilot_id:** ` uuid.UUID ` — Credal-generated Agent ID to add the collection to.
580
580
581
581
</dd >
582
582
</dl >
@@ -616,7 +616,7 @@ client.copilots.add_collection_to_copilot(
616
616
<dl >
617
617
<dd >
618
618
619
- Unlink a collection with a copilot . The API Key used must be added to both the collection and the copilot beforehand.
619
+ Unlink a collection with a agent . The API Key used must be added to both the collection and the agent beforehand.
620
620
</dd >
621
621
</dl >
622
622
</dd >
@@ -661,7 +661,7 @@ client.copilots.remove_collection_from_copilot(
661
661
<dl >
662
662
<dd >
663
663
664
- ** copilot_id:** ` uuid.UUID ` — Credal-generated copilot ID to add the collection to.
664
+ ** copilot_id:** ` uuid.UUID ` — Credal-generated agent ID to add the collection to.
665
665
666
666
</dd >
667
667
</dl >
@@ -701,7 +701,7 @@ client.copilots.remove_collection_from_copilot(
701
701
<dl >
702
702
<dd >
703
703
704
- Update the configuration for a copilot
704
+ Update the configuration for a agent
705
705
</dd >
706
706
</dl >
707
707
</dd >
@@ -729,8 +729,8 @@ client.copilots.update_configuration(
729
729
" 82e4b12a-6990-45d4-8ebd-85c00e030c24" ,
730
730
),
731
731
configuration = Configuration(
732
- name = " Customer Copilot " ,
733
- description = " This copilot is used to answer customer requests based on internal documentation." ,
732
+ name = " Customer Agent " ,
733
+ description = " This agent is used to answer customer requests based on internal documentation." ,
734
734
prompt = " You are a polite, helpful assistant used to answer customer requests." ,
735
735
ai_endpoint_configuration = AiEndpointConfiguration(
736
736
base_url = " https://api.openai.com/v1/" ,
@@ -753,7 +753,7 @@ client.copilots.update_configuration(
753
753
<dl >
754
754
<dd >
755
755
756
- ** copilot_id:** ` uuid.UUID ` — Credal-generated copilot ID to add the collection to.
756
+ ** copilot_id:** ` uuid.UUID ` — Credal-generated agent ID to add the collection to.
757
757
758
758
</dd >
759
759
</dl >
@@ -1348,7 +1348,7 @@ client.document_collections.remove_documents_from_collection(
1348
1348
<dl >
1349
1349
<dd >
1350
1350
1351
- Create a new copilot . The API key used will be added to the copilot for future Requests
1351
+ Create a new collection . The API key used will be added to the collection for future Requests
1352
1352
</dd >
1353
1353
</dl >
1354
1354
</dd >
@@ -1402,15 +1402,15 @@ client.document_collections.create_collection(
1402
1402
<dl >
1403
1403
<dd >
1404
1404
1405
- ** description:** ` str ` — An in depth name for the copilot 's function. Useful for routing requests to the right copilot .
1405
+ ** description:** ` str ` — An in depth name for the agent 's function. Useful for routing requests to the right agent .
1406
1406
1407
1407
</dd >
1408
1408
</dl >
1409
1409
1410
1410
<dl >
1411
1411
<dd >
1412
1412
1413
- ** collaborators:** ` typing.Sequence[Collaborator] ` — A list of collaborator emails and roles that will have access to the copilot .
1413
+ ** collaborators:** ` typing.Sequence[Collaborator] ` — A list of collaborator emails and roles that will have access to the agent .
1414
1414
1415
1415
</dd >
1416
1416
</dl >
@@ -1516,7 +1516,7 @@ client.document_collections.delete_collection(
1516
1516
<dl >
1517
1517
<dd >
1518
1518
1519
- Credal lets you easily sync your MongoDB data for use in Collections and Copilots . Create a new sync from a MongoDB collection to a Credal collection.
1519
+ Credal lets you easily sync your MongoDB data for use in Collections and Agents . Create a new sync from a MongoDB collection to a Credal collection.
1520
1520
</dd >
1521
1521
</dl >
1522
1522
</dd >
@@ -1622,7 +1622,7 @@ client.document_collections.create_mongo_collection_sync(
1622
1622
<dl >
1623
1623
<dd >
1624
1624
1625
- Credal lets you easily sync your MongoDB data for use in Collections and Copilots . Update an existing sync from a MongoDB collection to a Credal collection via the ` mongoCredentialId ` , to disambiguate between multiple potential syncs to a given collection.
1625
+ Credal lets you easily sync your MongoDB data for use in Collections and Agents . Update an existing sync from a MongoDB collection to a Credal collection via the ` mongoCredentialId ` , to disambiguate between multiple potential syncs to a given collection.
1626
1626
</dd >
1627
1627
</dl >
1628
1628
</dd >
0 commit comments