You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See the full list of LLM providers supported by Portkey
757
830
</Card>
758
831
832
+
759
833
## Tool Use in OpenAI Agents
760
834
761
835
OpenAI Agents SDK natively supports tools that enable your agents to interact with external systems and APIs. Portkey provides full observability for tool usage in your agents:
@@ -836,74 +910,6 @@ print(result.final_output)
836
910
837
911
838
912
839
-
## Model Interoperability
840
-
841
-
With Portkey, you can easily switch between different LLMs in your OpenAI Agents without changing your core agent logic.
842
-
843
-
```python
844
-
# Configure Portkey with different LLM providers
845
-
from portkey_ai import createHeaders, PORTKEY_GATEWAY_URL
846
-
from openai import AsyncOpenAI
847
-
from agents import set_default_openai_client
848
-
849
-
# Using OpenAI
850
-
openai_config = {
851
-
"provider": "openai",
852
-
"api_key": "YOUR_OPENAI_API_KEY",
853
-
"override_params": {
854
-
"model": "gpt-4o"
855
-
}
856
-
}
857
-
858
-
# Using Anthropic
859
-
anthropic_config = {
860
-
"provider": "anthropic",
861
-
"api_key": "YOUR_ANTHROPIC_API_KEY",
862
-
"override_params": {
863
-
"model": "claude-3-opus-20240229"
864
-
}
865
-
}
866
-
867
-
# Choose which config to use
868
-
active_config = openai_config # or anthropic_config
0 commit comments