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
28 changes: 7 additions & 21 deletions docs/mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"anchors": {
"from": "#D1E5F7",
"to": "#a9bed4"

}
},
"topbarCtaButton": {
Expand Down Expand Up @@ -60,25 +59,16 @@
"url": "https://agentops.ai/contact"
}
],
"versions": [
"v2",
"v1",
"v0"
],
"versions": ["v2", "v1", "v0"],
"navigation": [
{
"group": "",
"pages": [
"v1/introduction"
],
"pages": ["v1/introduction"],
"version": "v1"
},
{
"group": "Getting Started",
"pages": [
"v1/quickstart",
"v1/examples/examples"
],
"pages": ["v1/quickstart", "v1/examples/examples"],
"version": "v1"
},
{
Expand Down Expand Up @@ -140,17 +130,12 @@
},
{
"group": "",
"pages": [
"v2/introduction"
],
"pages": ["v2/introduction"],
"version": "v2"
},
{
"group": "Getting Started",
"pages": [
"v2/quickstart",
"v2/examples/examples"
],
"pages": ["v2/quickstart", "v2/examples/examples"],
"version": "v2"
},
{
Expand Down Expand Up @@ -199,7 +184,8 @@
"v2/usage/tracking-agents",
"v2/usage/recording-operations",
"v2/usage/trace-decorator",
"v2/usage/manual-trace-control"
"v2/usage/manual-trace-control",
"v2/usage/public-api"
],
"version": "v2"
},
Expand Down
8 changes: 4 additions & 4 deletions docs/v2/examples/openai.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: 'OpenAI'
description: 'Load the dataset (ensure you're logged in with huggingface-cli if needed)'
description: "Load the dataset (ensure you're logged in with huggingface-cli if needed)"
---
{/* SOURCE_FILE: examples/openai/multi_tool_orchestration.ipynb */}

Expand Down Expand Up @@ -322,7 +322,7 @@ Finally, the tool call and its output are appended to the conversation, and the

### Multi-tool orchestration flow

Now let us try to modify the input query and the system instructions to the responses API in order to follow a tool calling sequence and generate the output.
Now let us try to modify the input query and the system instructions to the responses API in order to follow a tool calling sequence and generate the output.


```python
Expand Down Expand Up @@ -427,10 +427,10 @@ agentops.end_trace(tracer, end_state="Success")
```


Here, we have seen how to utilize OpenAI's Responses API to implement a Retrieval-Augmented Generation (RAG) approach with multi-tool calling capabilities. It showcases an example where the model selects the appropriate tool based on the input query: general questions may be handled by built-in tools such as web-search, while specific medical inquiries related to internal knowledge are addressed by retrieving context from a vector database (such as Pinecone) via function calls. Additonally, we have showcased how multiple tool calls can be sequentially combined to generate a final response based on our instructions provided to responses API. Happy coding!
Here, we have seen how to utilize OpenAI's Responses API to implement a Retrieval-Augmented Generation (RAG) approach with multi-tool calling capabilities. It showcases an example where the model selects the appropriate tool based on the input query: general questions may be handled by built-in tools such as web-search, while specific medical inquiries related to internal knowledge are addressed by retrieving context from a vector database (such as Pinecone) via function calls. Additonally, we have showcased how multiple tool calls can be sequentially combined to generate a final response based on our instructions provided to responses API. Happy coding!


<script type="module" src="/scripts/github_stars.js"></script>
<script type="module" src="/scripts/scroll-img-fadein-animation.js"></script>
<script type="module" src="/scripts/button_heartbeat_animation.js"></script>
<script type="module" src="/scripts/adjust_api_dynamically.js"></script>
<script type="module" src="/scripts/adjust_api_dynamically.js"></script>
Loading
Loading