Implement Client Vetting Agent

implementationChallenge

Prompt Content

Implement the 'Client Vetting Agent' using the OpenAI Agents SDK. This agent should be capable of: 
1. Receiving client information (refer to `SimulatedClientVetting` input_format). 
2. Calling a mock enterprise API to 'verify identity' and 'check financial history'. 
3. Querying Weaviate for stored compliance rules and past client flags. 
4. Making a decision on client approval and identifying any compliance flags. 

Ensure secure handling of mock data and demonstrate tool use within the OpenAI Agents SDK. Include basic agent initialization like:

```python
from openai import OpenAI

client = OpenAI()
assistant = client.beta.assistants.create(
    name="ClientVettingAgent",
    instructions="You are an expert financial compliance officer. Your role is to vet new clients and ensure they meet all regulatory requirements.",
    model="gpt-4o",
    tools=[
        {"type": "function", "function": {"name": "verify_identity", "description": "Verify client identity...", "parameters": {}}},
        {"type": "function", "function": {"name": "check_financial_history", "description": "Check client's financial background...", "parameters": {}}}
    ]
)
```

Try this prompt

Open the workspace to execute this prompt with free credits, or use your own API keys for unlimited usage.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations