Skip to content

Export OpenAIConversationsSessionOptions #745

@marc-wilson

Description

@marc-wilson

Please read this first

  • Have you read the docs? Agents SDK docs
  • Have you searched for related issues? Others may have faced similar issues.

Describe the bug

I am trying to pass options into OpenAIConversationsSession, but OpenAIConversationsSessionOptions doesn't seem to be exported. All the other imports seem to work fine so i'm not sure if this is coming from another package or if it just hasn't been exported.

const options: OpenAIConversationsSessionOptions = {
 ...
}
const session = new OpenAIConversationsSession(options);
const result = await run(agent, prompt, {
    session,
});

TS2552: Cannot find name OpenAIConversationsSessionOptions. Did you mean OpenAIConversationsSession?

Debug information

version: 0.3.1

  • Agents SDK version: (e.g. v0.0.1)
  • Runtime environment (e.g. Node.js 22.16.0)

Repro steps

Ideally provide a minimal JavaScript/TypeScript script that can be run to reproduce the bug.

Expected behavior

A clear and concise description of what you expected to happen.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions