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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: ci
on: [push]
jobs:
compile:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand All @@ -19,7 +19,7 @@ jobs:
- name: Compile
run: poetry run mypy .
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand All @@ -39,7 +39,7 @@ jobs:
publish:
needs: [compile, test]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand Down
26 changes: 13 additions & 13 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "credal"

[tool.poetry]
name = "credal"
version = "0.0.25"
version = "0.0.26"
description = ""
readme = "README.md"
authors = []
Expand Down
56 changes: 28 additions & 28 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<dl>
<dd>

Create a new copilot. The API key used will be added to the copilot for future Requests
Create a new agent. The API key used will be added to the agent for future Requests
</dd>
</dl>
</dd>
Expand All @@ -34,8 +34,8 @@ client = CredalApi(
api_key="YOUR_API_KEY",
)
client.copilots.create_copilot(
name="Customer Copilot",
description="This copilot is used to answer customer requests based on internal documentation.",
name="Customer Agent",
description="This agent is used to answer customer requests based on internal documentation.",
collaborators=[
Collaborator(
email="[email protected]",
Expand All @@ -58,23 +58,23 @@ client.copilots.create_copilot(
<dl>
<dd>

**name:** `str` — A descriptive name for the copilot.
**name:** `str` — A descriptive name for the agent.

</dd>
</dl>

<dl>
<dd>

**description:** `str` — An in depth name for the copilot's function. Useful for routing requests to the right copilot.
**description:** `str` — An in depth name for the agent's function. Useful for routing requests to the right agent.

</dd>
</dl>

<dl>
<dd>

**collaborators:** `typing.Sequence[Collaborator]` — A list of collaborator emails and roles that will have access to the copilot.
**collaborators:** `typing.Sequence[Collaborator]` — A list of collaborator emails and roles that will have access to the agent.

</dd>
</dl>
Expand Down Expand Up @@ -106,7 +106,7 @@ client.copilots.create_copilot(
<dl>
<dd>

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.
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.
</dd>
</dl>
</dd>
Expand Down Expand Up @@ -149,7 +149,7 @@ client.copilots.create_conversation(
<dl>
<dd>

**agent_id:** `uuid.UUID` — Credal-generated Copilot ID to specify which agent to route the request to.
**agent_id:** `uuid.UUID` — Credal-generated Agent ID to specify which agent to route the request to.

</dd>
</dl>
Expand Down Expand Up @@ -227,7 +227,7 @@ client.copilots.provide_message_feedback(
<dl>
<dd>

**agent_id:** `uuid.UUID` — Credal-generated Copilot ID to specify which agent to route the request to.
**agent_id:** `uuid.UUID` — Credal-generated Agent ID to specify which agent to route the request to.

</dd>
</dl>
Expand Down Expand Up @@ -335,15 +335,15 @@ client.copilots.send_message(
<dl>
<dd>

**agent_id:** `uuid.UUID` — Credal-generated Copilot ID to specify which agent to route the request to.
**agent_id:** `uuid.UUID` — Credal-generated Agent ID to specify which agent to route the request to.

</dd>
</dl>

<dl>
<dd>

**message:** `str` — The message you want to send to your copilot.
**message:** `str` — The message you want to send to your agent.

</dd>
</dl>
Expand Down Expand Up @@ -399,7 +399,7 @@ client.copilots.send_message(
<dl>
<dd>

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.
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.
</dd>
</dl>
</dd>
Expand Down Expand Up @@ -450,7 +450,7 @@ response = client.copilots.stream_message(
),
],
)
for chunk in response:
for chunk in response.data:
yield chunk

```
Expand All @@ -467,15 +467,15 @@ for chunk in response:
<dl>
<dd>

**copilot_id:** `uuid.UUID` — Credal-generated Copilot ID to specify which agent to route the request to.
**copilot_id:** `uuid.UUID` — Credal-generated Agent ID to specify which agent to route the request to.

</dd>
</dl>

<dl>
<dd>

**message:** `str` — The message you want to send to your copilot.
**message:** `str` — The message you want to send to your agent.

</dd>
</dl>
Expand Down Expand Up @@ -531,7 +531,7 @@ for chunk in response:
<dl>
<dd>

Link a collection with a copilot. The API Key used must be added to both the collection and the copilot beforehand.
Link a collection with a agent. The API Key used must be added to both the collection and the agent beforehand.
</dd>
</dl>
</dd>
Expand Down Expand Up @@ -576,7 +576,7 @@ client.copilots.add_collection_to_copilot(
<dl>
<dd>

**copilot_id:** `uuid.UUID` — Credal-generated copilot ID to add the collection to.
**copilot_id:** `uuid.UUID` — Credal-generated Agent ID to add the collection to.

</dd>
</dl>
Expand Down Expand Up @@ -616,7 +616,7 @@ client.copilots.add_collection_to_copilot(
<dl>
<dd>

Unlink a collection with a copilot. The API Key used must be added to both the collection and the copilot beforehand.
Unlink a collection with a agent. The API Key used must be added to both the collection and the agent beforehand.
</dd>
</dl>
</dd>
Expand Down Expand Up @@ -661,7 +661,7 @@ client.copilots.remove_collection_from_copilot(
<dl>
<dd>

**copilot_id:** `uuid.UUID` — Credal-generated copilot ID to add the collection to.
**copilot_id:** `uuid.UUID` — Credal-generated agent ID to add the collection to.

</dd>
</dl>
Expand Down Expand Up @@ -701,7 +701,7 @@ client.copilots.remove_collection_from_copilot(
<dl>
<dd>

Update the configuration for a copilot
Update the configuration for a agent
</dd>
</dl>
</dd>
Expand Down Expand Up @@ -729,8 +729,8 @@ client.copilots.update_configuration(
"82e4b12a-6990-45d4-8ebd-85c00e030c24",
),
configuration=Configuration(
name="Customer Copilot",
description="This copilot is used to answer customer requests based on internal documentation.",
name="Customer Agent",
description="This agent is used to answer customer requests based on internal documentation.",
prompt="You are a polite, helpful assistant used to answer customer requests.",
ai_endpoint_configuration=AiEndpointConfiguration(
base_url="https://api.openai.com/v1/",
Expand All @@ -753,7 +753,7 @@ client.copilots.update_configuration(
<dl>
<dd>

**copilot_id:** `uuid.UUID` — Credal-generated copilot ID to add the collection to.
**copilot_id:** `uuid.UUID` — Credal-generated agent ID to add the collection to.

</dd>
</dl>
Expand Down Expand Up @@ -1348,7 +1348,7 @@ client.document_collections.remove_documents_from_collection(
<dl>
<dd>

Create a new copilot. The API key used will be added to the copilot for future Requests
Create a new collection. The API key used will be added to the collection for future Requests
</dd>
</dl>
</dd>
Expand Down Expand Up @@ -1402,15 +1402,15 @@ client.document_collections.create_collection(
<dl>
<dd>

**description:** `str` — An in depth name for the copilot's function. Useful for routing requests to the right copilot.
**description:** `str` — An in depth name for the agent's function. Useful for routing requests to the right agent.

</dd>
</dl>

<dl>
<dd>

**collaborators:** `typing.Sequence[Collaborator]` — A list of collaborator emails and roles that will have access to the copilot.
**collaborators:** `typing.Sequence[Collaborator]` — A list of collaborator emails and roles that will have access to the agent.

</dd>
</dl>
Expand Down Expand Up @@ -1516,7 +1516,7 @@ client.document_collections.delete_collection(
<dl>
<dd>

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.
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.
</dd>
</dl>
</dd>
Expand Down Expand Up @@ -1622,7 +1622,7 @@ client.document_collections.create_mongo_collection_sync(
<dl>
<dd>

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.
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.
</dd>
</dl>
</dd>
Expand Down
Loading