Skip to main content
Loading navigation

Initial Agent Setup and Tool Definition

Prompt source

planning1 lines1 sectionsNo variables0 checklist items
Using the OpenAI Agents SDK, define an agent named 'ContentReviewBot'. Create two custom tools: 'analyze_content(content_text: str, review_criteria: list[str]) -> dict' that simulates content analysis using Claude 4 Sonnet (you can mock this with a detailed response for now), and 'initiate_payment(content_id: str, amount: float) -> str' that simulates a Crossmint payment initiation. Define the agent's initial instructions to focus on content compliance and monetization inquiries. Provide the Python code snippet for agent and tool initialization.