Python SDK for AI agent monitoring, LLM cost tracking, benchmarking, and more. Integrates with most LLMs and agent frameworks including CrewAI, Agno, OpenAI Agents SDK, Langchain, Autogen, AG2, and CamelAI
Python agentagentopsagents-sdkaianthropicautogencost-estimationcrewaievalsevaluation-metricsgroqlangchainllmmistralollamaopenaiopenai-agents
Update README and example notebooks to reflect IBM Watsonx branding a… (#949)
Dwijcbe2ab08df65
diff --git a/examples/watsonx_examples/README.md b/examples/watsonx_examples/README.mdindex 85749981..295b62b8 100644--- a/examples/watsonx_examples/README.md+++ b/examples/watsonx_examples/README.md@@ -1,11 +1,11 @@-# IBM Watson.x AI Examples with AgentOps+# IBM Watsonx AI Examples with AgentOpsThis directory contains examples of using IBM Watson.x AI with AgentOps instrumentation for various natural language processing tasks.## Prerequisites-- IBM Watson.x AI account with API key-- Python 3.10++- IBM Watsonx AI account with API key+- Python >=3.10 <3.13- Install required dependencies:```pip install agentops ibm-watsonx-ai python-dotenv@@ -25,8 +25,7 @@ WATSONX_PROJECT_ID=your-project-id-here### 1. Basic Text Generation and Chat Completion-File: `watsonx-example-text-and-chat.ipynb`-+File: [watsonx-text-chat.ipynb](https://github.com/AgentOps-AI/agentops/blob/0.4.9/examples/watsonx_examples/watsonx-text-chat.ipynb)This notebook demonstrates:- Basic text generation with IBM Watson.x AI- Chat completion with system and user messages@@ -34,7 +33,7 @@ This notebook demonstrates:### 2. Streaming Generation-File: `watsonx-example-streaming.ipynb`+File: [watsonx-streaming.ipynb](https://github.com/AgentOps-AI/agentops/blob/0.4.9/examples/watsonx_examples/watsonx-streaming.ipynb)This notebook demonstrates:- Streaming text generation@@ -43,7 +42,7 @@ This notebook demonstrates:### 3. Tokenization and Model Details-File: `watsonx-example-tokenization-model.ipynb`+File: [watsonx-tokenization-model.ipynb](https://github.com/AgentOps-AI/agentops/blob/0.4.9/examples/watsonx_examples/watsonx-tokeniation-model.ipynb)This notebook demonstrates:- Tokenizing text with IBM Watson.x AI modelsdiff --git a/examples/watsonx_examples/watsonx-streaming.ipynb b/examples/watsonx_examples/watsonx-streaming.ipynbindex 8f6d2bf7..43529a04 100644--- a/examples/watsonx_examples/watsonx-streaming.ipynb+++ b/examples/watsonx_examples/watsonx-streaming.ipynb@@ -4,9 +4,9 @@"cell_type": "markdown","metadata": {},"source": [- "# IBM Watson.x AI Streaming with AgentOps\n",+ "# IBM Watsonx AI Streaming with AgentOps\n","\n",- "This notebook demonstrates how to use IBM Watson.x AI for streaming text generation and streaming chat completion with AgentOps instrumentation."+ "This notebook demonstrates how to use IBM Watsonx AI for streaming text generation and streaming chat completion with AgentOps instrumentation."]},{@@ -41,9 +41,9 @@"cell_type": "markdown","metadata": {},"source": [- "## Initialize IBM Watson.x AI Credentials\n",+ "## Initialize IBM Watsonx AI Credentials\n","\n",- "To use IBM Watson.x AI, you need to set up your credentials and project ID."+ "To use IBM Watsonx AI, you need to set up your credentials and project ID."]},{@@ -59,7 +59,7 @@" api_key=os.getenv(\"WATSONX_API_KEY\", \"your-api-key-here\"),\n",")\n","\n",- "# Project ID for your IBM Watson.x project\n",+ "# Project ID for your IBM Watsonx project\n","project_id = os.getenv(\"WATSONX_PROJECT_ID\", \"your-project-id-here\")"]},@@ -99,7 +99,7 @@"source": ["## Streaming Text Generation\n","\n",- "Let's use IBM Watson.x AI to generate streaming text:"+ "Let's use IBM Watsonx AI to generate streaming text:"]},{diff --git a/examples/watsonx_examples/watsonx-text-chat.ipynb b/examples/watsonx_examples/watsonx-text-chat.ipynbindex 665dd5ec..10ef78d9 100644--- a/examples/watsonx_examples/watsonx-text-chat.ipynb+++ b/examples/watsonx_examples/watsonx-text-chat.ipynb@@ -4,9 +4,9 @@"cell_type": "markdown","metadata": {},"source": [- "# IBM Watson.x AI Text Generation and Chat with AgentOps\n",+ "# IBM Watsonx AI Text Generation and Chat with AgentOps\n","\n",- "This notebook demonstrates how to use IBM Watson.x AI for basic text generation and chat completion tasks with AgentOps instrumentation."+ "This notebook demonstrates how to use IBM Watsonx AI for basic text generation and chat completion tasks with AgentOps instrumentation."]},{@@ -41,9 +41,9 @@"cell_type": "markdown","metadata": {},"source": [- "## Initialize IBM Watson.x AI Credentials\n",+ "## Initialize IBM Watsonx AI Credentials\n","\n",- "To use IBM Watson.x AI, you need to set up your credentials and project ID."+ "To use IBM Watsonx AI, you need to set up your credentials and project ID."]},{@@ -59,7 +59,7 @@" api_key=os.getenv(\"WATSONX_API_KEY\", \"your-api-key-here\"),\n",")\n","\n",- "# Project ID for your IBM Watson.x project\n",+ "# Project ID for your IBM Watsonx project\n","project_id = os.getenv(\"WATSONX_PROJECT_ID\", \"your-project-id-here\")"]},@@ -69,7 +69,7 @@"source": ["## Text Generation\n","\n",- "Let's use IBM Watson.x AI to generate text based on a prompt:"+ "Let's use IBM Watsonx AI to generate text based on a prompt:"]},{diff --git a/examples/watsonx_examples/watsonx-tokeniation-model.ipynb b/examples/watsonx_examples/watsonx-tokeniation-model.ipynbindex d0d181af..5ba1bb27 100644--- a/examples/watsonx_examples/watsonx-tokeniation-model.ipynb+++ b/examples/watsonx_examples/watsonx-tokeniation-model.ipynb@@ -4,9 +4,9 @@"cell_type": "markdown","metadata": {},"source": [- "# IBM Watson.x AI Tokenization and Model Details with AgentOps\n",+ "# IBM Watsonx AI Tokenization and Model Details with AgentOps\n","\n",- "This notebook demonstrates how to use IBM Watson.x AI for tokenization and retrieving model details with AgentOps instrumentation."+ "This notebook demonstrates how to use IBM Watsonx AI for tokenization and retrieving model details with AgentOps instrumentation."]},{@@ -41,9 +41,9 @@"cell_type": "markdown","metadata": {},"source": [- "## Initialize IBM Watson.x AI Credentials\n",+ "## Initialize IBM Watsonx AI Credentials\n","\n",- "To use IBM Watson.x AI, you need to set up your credentials and project ID."+ "To use IBM Watsonx AI, you need to set up your credentials and project ID."]},{@@ -59,7 +59,7 @@" api_key=os.getenv(\"WATSONX_API_KEY\", \"your-api-key-here\"),\n",")\n","\n",- "# Project ID for your IBM Watson.x project\n",+ "# Project ID for your IBM Watsonx project\n","project_id = os.getenv(\"WATSONX_PROJECT_ID\", \"your-project-id-here\")"]},@@ -92,7 +92,7 @@"source": ["## Tokenization\n","\n",- "Let's use IBM Watson.x AI to tokenize text:"+ "Let's use IBM Watsonx AI to tokenize text:"]},{