Back to prompt library
Implement Client Vetting Agent
Linked challenge: Secure Enterprise Financial Automation
Prompt source
implementation19 lines4 sectionsNo variables1 code block
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": {}}}
]
)
```