Skip to content

Using structured output in combination with built in tool usage #1388

@SoftMemes

Description

@SoftMemes

I am trying to use Koog with the latest OpenAI models and the combination of reasoning, structured output, and built in tool use. Specifically, I would like OpenAI to perform web searches on my behalf and eventually output structured output (rather than me calling tools when instructed by OpenAI).

I've noticed that PromptExecutor has an execute method that accepts tools, but executeStructured does not expose this, and I am also not entirely sure if this is the setting to use for built in tool usage by a vendor, rather than those provided by custom code / the framework.

Any clarification on how to do this would be appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions