Missing Agents reasoning.effort option

Hi, I’ve tried to set up reasoning effort and summary using Agents SDK TS like in Response API, but looks like this option is missing or I’m doing something wrong. Is this option available in Agents SDK?

My code

const agent = new Agent({
    model: "o4-mini",
    modelSettings: {
        reasoning: { effort: "high", summary: 'auto' },
    }
});

Working Responses API example:

const response = await openai.responses.create({
    model: "o4-mini",
    reasoning: { effort: "high", summary: 'auto' },
    input: input,
});

Note: It seems the Python SDK’s ModelSettings class offers a lot more configuration options than the TypeScript SDK, including reasoning.

Hopefully the TS SDK gains these extra attributes soon.

1 Like

I figure out that setting reasoning is posible, but it has to be set inside providerData like so:

const agent = new Agent({
    model: "o4-mini",
    modelSettings: {
        providerData: {
             reasoning: { effort: 'high', summary: 'auto' },
        },
    }
});