Skip to content

Commit

Permalink
update openapi docs and configure number (vocodedev#378)
Browse files Browse the repository at this point in the history
* update openapi docs and configure number

* bump with prompts and actually correct docs

* mintlify generate

* updates sidebar

* vector DB docs

---------

Co-authored-by: Ajay Raj <[email protected]>
  • Loading branch information
Kian1354 and ajar98 authored Aug 26, 2023
1 parent 83e0ab4 commit 8834a4d
Show file tree
Hide file tree
Showing 19 changed files with 496 additions and 16 deletions.
2 changes: 1 addition & 1 deletion docs/api-reference/actions/get-action.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: get /v1/actions
---
---
2 changes: 1 addition & 1 deletion docs/api-reference/agents/get-agent.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: get /v1/agents
---
---
2 changes: 1 addition & 1 deletion docs/api-reference/calls/get-call.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: get /v1/calls
---
---
3 changes: 3 additions & 0 deletions docs/api-reference/calls/get-recording.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: get /v1/calls/recording
---
2 changes: 1 addition & 1 deletion docs/api-reference/numbers/get-number.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: get /v1/numbers
---
---
3 changes: 3 additions & 0 deletions docs/api-reference/prompts/create-prompt.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /v1/prompts/create
---
3 changes: 3 additions & 0 deletions docs/api-reference/prompts/get-prompt.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: get /v1/prompts
---
3 changes: 3 additions & 0 deletions docs/api-reference/prompts/list-prompts.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: get /v1/prompts/list
---
3 changes: 3 additions & 0 deletions docs/api-reference/prompts/update-prompt.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /v1/prompts/update
---
2 changes: 1 addition & 1 deletion docs/api-reference/usage/get-usage.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: get /v1/usage
---
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /v1/vector_databases/create
---
3 changes: 3 additions & 0 deletions docs/api-reference/vector_databases/get-vector-database.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: get /v1/vector_databases
---
3 changes: 3 additions & 0 deletions docs/api-reference/vector_databases/list-vector-databases.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: get /v1/vector_databases/list
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /v1/vector_databases/update
---
2 changes: 1 addition & 1 deletion docs/api-reference/voices/get-voice.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: get /v1/voices
---
---
2 changes: 1 addition & 1 deletion docs/api-reference/webhooks/get-webhook.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: get /v1/webhooks
---
---
6 changes: 3 additions & 3 deletions docs/configuring-number.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ prompt so the AI responds like Yoda.
<CodeGroup>

```python Python
from vocode import AgentUpdateParams
from vocode import AgentUpdateParams, PromptUpdateParams

yoda_prompt = "I want you to act as Yoda. Respond as Yoda would."
yoda_prompt = PromptUpdateParams(content="I want you to act as Yoda. Respond as Yoda would.")
number = vocode_client.numbers.update_number(
phone_number="YOUR_NUMBER", inbound_agent=AgentUpdateParams(prompt=yoda_prompt)
)
Expand All @@ -43,7 +43,7 @@ number = vocode_client.numbers.update_number(
const yoda_prompt = "I want you to act as Yoda. Respond as Yoda would.";
const number = await vocode.numbers.updateNumber({
phoneNumber: "YOUR_NUMBER",
inboundAgent: { prompt: yoda_prompt },
inboundAgent: { prompt: { content: yoda_prompt } },
});
```

Expand Down
21 changes: 20 additions & 1 deletion docs/mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@
"api-reference/calls/list-calls",
"api-reference/calls/get-call",
"api-reference/calls/end-call",
"api-reference/calls/create-call"
"api-reference/calls/create-call",
"api-reference/calls/get-recording"
]
},
{
Expand All @@ -124,6 +125,24 @@
"api-reference/agents/update-agent"
]
},
{
"group": "Prompts",
"pages": [
"api-reference/prompts/get-prompt",
"api-reference/prompts/list-prompts",
"api-reference/prompts/create-prompt",
"api-reference/prompts/update-prompt"
]
},
{
"group": "Vector Databases",
"pages": [
"api-reference/vector_database/get-prompt",
"api-reference/vector_database/list-prompts",
"api-reference/vector_database/create-prompt",
"api-reference/vector_database/update-prompt"
]
},
{
"group": "Voices",
"pages": [
Expand Down
Loading

0 comments on commit 8834a4d

Please sign in to comment.