agentops/examples/xai
xiaoxue af7cdc0ffd 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
..
README.md 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
grok_examples.ipynb 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
grok_examples.py 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
grok_vision_examples.ipynb 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
grok_vision_examples.py 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
requirements.txt 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00

README.md

xAI Examples with AgentOps

This directory contains examples of using the xAI (Grok) API with AgentOps instrumentation.

Prerequisites

  • Python >= 3.10 < 3.13
  • Install required dependencies:
    pip install agentops openai
    

Examples

1. Grok Examples

Example: grok_examples This example demonstrates:

  • Basic Grok API usage

2. Grok Vision Examples

Example: grok_vision_examples

This example demonstrates:

  • Vision capabilities with Grok

AgentOps Integration

These examples show how to use AgentOps to monitor and analyze your AI applications. AgentOps automatically instruments your xAI calls to provide insights into performance, usage patterns, and model behavior.

To learn more about AgentOps, visit https://www.agentops.ai