Skip to content

[FEATURE REQ] Custom tools and format (cfg) support #785

@bharathm03

Description

@bharathm03

Describe the feature or improvement you are requesting

This is a feature request to add support for the recently introduced "Custom Tools" feature in the OpenAI API. This feature enables defining tools that can accept a plain string as input, rather than a structured JSON object. It also includes the ability to constrain the model's output for these tools using a context-free grammar (CFG) with either Lark or regex syntax.

Additional context

This feature is already available in both openai-node and openai-python. It would be helpful my app.

OpenAI documentation link:
https://platform.openai.com/docs/guides/function-calling#custom-tools

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: responsesThis item is related to Responsesblocked: specThis issue is blocked on a needed REST API spec update.feature-requestCategory: A new feature or enhancement to an existing feature is being requested.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions