Skip to main content
Back to Prompt Library
implementation

Initialize OpenAI Agents SDK Investigator

Inspect the original prompt language first, then copy or adapt it once you know how it fits your workflow.

Linked challenge: OpenAI Agents SDK Research Misconduct Audit System

Format
Code-aware
Lines
9
Sections
4
Linked challenge
OpenAI Agents SDK Research Misconduct Audit System

Prompt source

Original prompt text with formatting preserved for inspection.

9 lines
4 sections
No variables
0 checklist items
from openai import OpenAI
# Initialize OpenAI Agents SDK client
client = OpenAI()

# Define tools and sub-agent handoffs for forensic cross-examination
def query_email_archive(query: str) -> list:
    return [{'date': '2021-03-10', 'body': 'Checked fig 3A'}]

def query_image_audit_logs(figure_id: str) -> dict:
    return {'figure_id': figure_id, 'finding': 'Lane duplication'}

# Configure Agent multi-turn execution loop

Adaptation plan

Keep the source stable, then change the prompt in a predictable order so the next run is easier to evaluate.

Keep stable

Hold the task contract and output shape stable so generated implementations remain comparable.

Tune next

Update libraries, interfaces, and environment assumptions to match the stack you actually run.

Verify after

Test failure handling, edge cases, and any code paths that depend on hidden context or secrets.