techlist.io

Structured Outputs

2 posts

Slack2025-12-013 min readCurated summary

Streamlining Security Investigations with Agents

Slack’s Security Engineering team uses a multi-agent AI system to investigate security alerts across billions of daily events. After finding that a single prompt produced inconsistent results, the team replaced it with a controlled workflow of specialized model invocations, structured outputs, and application-level orchestration. The resulting system improves consistency, enables evidence review, and allocates more capable models only where they add the most value. ## From Prompt Prototype to Controlled Workflow - The initial prototype consisted of a roughly 300-word prompt defining: - The analyst’s role - Available data sources - Investigation methodology - Report formatting - Response classifications - A stdio-based MCP server safely exposed selected security data sources to the model. - A coding-agent CLI served as the prototype execution environment. - Results varied significantly: - Sometimes the model cross-referenced evidence effectively. - Other times it reached convenient or unsupported conclusions too quickly. - Prompt refinements helped somewhat, but prompts were ultimately too limited for fine-grained process control. ## Structured Investigation Tasks - Slack decomposed the investigation into a sequence of model invocations. - Each invocation performs one well-defined task and returns a structured output. - The application chains these tasks together and passes only the necessary context between stages. - Structured outputs use JSON schemas to constrain model responses. - They improve predictability, but can still fail when schemas are too complex and remain vulnerable to hallucination or attempts to circumvent constraints. - Guidance such as “question your evidence” became an explicit workflow step rather than merely an instruction in a prompt. ## Persona-Based Agent Architecture - Slack drew inspiration from research on meta-prompting, multi-persona collaboration, and security tabletop exercises. - Instead of representing multiple personas within one model call, Slack implemented each persona as an independent model invocation. - Every agent/task pair has: - A defined responsibility - A carefully designed output structure - Specific prompts and instructions - Potentially different models and tools - The application orchestrates the agents and controls how knowledge moves through the investigation. ## The Investigation Loop - **Director agent** - Guides the investigation from beginning to end. - Forms questions for domain experts. - Uses a journaling tool to plan and organize progress. - Decides how to continue based on reviewed findings and timelines. - **Expert agents** - Investigate questions using specialized knowledge and data sources. - Slack currently uses four domains: - **Access:** Authentication, authorization, and perimeter services - **Cloud:** Infrastructure, compute, orchestration, and networking - **Code:** Source code and configuration management - **Threat:** Threat intelligence and analysis - **Critic agent** - Acts as a meta-expert reviewing domain findings. - Applies a defined rubric to assess quality. - Adds analysis and credibility scores to individual findings. - Helps identify reliable evidence and reduce hallucinations. - Returns its conclusions to the Director, closing the investigation loop. - The Critic’s mildly adversarial role provides an independent challenge to expert conclusions. ## The Knowledge Pyramid - Different stages use different model capabilities and costs. - Domain experts operate at the base: - They query complex data sources. - They may make many tool calls. - Processing their results can consume substantial tokens. - The Critic reviews the larger set of expert findings and identifies the most valuable or credible evidence. - Higher-level reasoning can therefore use a smaller, more focused context. - Because each stage is independent, Slack can select different model versions, prompts, tools, and output formats for different tasks. Slack’s main recommendation is to treat complex agent behavior as an explicitly orchestrated workflow rather than relying on one increasingly elaborate prompt. Specialized agents, structured outputs, independent critique, and tiered model usage provide more predictable investigations while preserving the flexibility of AI-assisted analysis.

OpenAI2025-01-304 min readCurated summary

OpenAI o3-mini

OpenAI released o3-mini on January 31, 2025, as the most cost-efficient model in its reasoning series, available in ChatGPT and the API. It is optimized for science, math, and coding, and matches the performance of the larger o1 model on many STEM tasks at medium reasoning effort. It also keeps the low cost and reduced latency of o1-mini and adds developer features such as function calling and Structured Outputs. The post notes that o3-mini is now deprecated in the API. ## Developer Features and API Access - o3-mini is OpenAI's first small reasoning model to support function calling, Structured Outputs, and developer messages, which make it production-ready at launch. - It supports streaming, as o1-mini and o1-preview did. - Developers choose among three reasoning effort levels (low, medium, high) to trade off between deeper thinking and lower latency. - It does not support vision, so visual reasoning tasks should still use o1. - Initial API access covered the Chat Completions, Assistants, and Batch APIs, for select developers in usage tiers 3-5. ## ChatGPT Availability and Limits - Plus, Team, and Pro users got access immediately, with Enterprise access following in February. - o3-mini replaced o1-mini in the model picker. - Plus and Team message limits rose from 50 to 150 messages per day. - Free users can try o3-mini by selecting "Reason" in the composer or regenerating a response. This was the first time a reasoning model was available to free users in ChatGPT. - ChatGPT uses medium reasoning effort by default. Paid users can select o3-mini-high for higher intelligence at the cost of slower responses, and Pro users have unlimited access to both variants. - o3-mini gained an early search integration that returns answers with links to web sources. ## Benchmark Performance - **Competition math (AIME 2024):** Low effort matches o1-mini, medium effort matches o1, and high effort outperforms both. - **PhD-level science (GPQA Diamond):** Low effort beats o1-mini, and high effort matches o1. - **FrontierMath:** With high reasoning and a Python tool, o3-mini solves over 32% of problems on the first attempt, including more than 28% of the hardest (T3) problems. These results were provisional. - **Competitive coding (Codeforces):** Elo scores rise with reasoning effort, and medium effort matches o1. - **Software engineering (SWE-bench Verified, n=477):** o3-mini is OpenAI's highest-performing released model on this benchmark. It scores 39% with the open-source Agentless scaffold and 61% with an internal tools scaffold at high effort. - **LiveBench coding:** Even at medium effort, o3-mini surpasses o1-high, and the lead grows at high effort. - **General knowledge:** o3-mini outperforms o1-mini. - **Human preference:** External expert testers preferred o3-mini's answers over o1-mini's 56% of the time and saw a 39% reduction in major errors on difficult real-world questions. ## Speed and Latency - In A/B testing, o3-mini responded 24% faster than o1-mini, with an average response time of 7.7 seconds versus 10.16 seconds. - Its average time to first token is about 2500 ms faster than o1-mini's at medium effort. ## Safety Approach - o3-mini was trained with deliberative alignment, meaning it reasons over human-written safety specifications before answering. - It significantly outperforms GPT-4o on challenging safety and jailbreak evaluations. - Pre-deployment safety work followed the same preparedness framework, external red-teaming, and evaluations used for o1. Full details are in the o3-mini system card. ## Cost and Outlook OpenAI positions o3-mini as part of its effort to lower the cost of intelligence. The company notes it has cut per-token pricing by 95% since GPT-4 launched, while keeping top-tier reasoning for technical domains.