CustomTool

@Serializable
class CustomTool(val name: String) : ResponseTool

A free-form tool that takes raw text instead of JSON arguments.

The API only serves apply_patch, the tool Codex uses to edit files; any other name is rejected with 400. The model answers with a CustomToolCallItem.

Constructors

Link copied to clipboard
constructor(name: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Name of the custom tool; in practice apply_patch.

Link copied to clipboard
open override val type: String

Raw type discriminator of the tool.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String