class documentation

class AgentOutputSchemaInput(AgentOutputSchemaBase): (source)

View In Hierarchy

Data conversion friendly representation of AgentOutputSchema.

Method is_plain_text Whether the output type is plain text (versus a JSON object).
Method is_strict_json_schema Whether the JSON schema is in strict mode.
Method json_schema The JSON schema of the output type.
Method name Get the name of the output type.
Method validate_json Validate the JSON string against the schema.
Class Variable is_wrapped Undocumented
Class Variable output_schema Undocumented
Class Variable output_type_name Undocumented
Class Variable strict_json_schema Undocumented
def is_plain_text(self) -> bool: (source)

Whether the output type is plain text (versus a JSON object).

def is_strict_json_schema(self) -> bool: (source)

Whether the JSON schema is in strict mode.

def json_schema(self) -> dict[str, Any]: (source)

The JSON schema of the output type.

def name(self) -> str: (source)

Get the name of the output type.

def validate_json(self, json_str: str) -> Any: (source)

Validate the JSON string against the schema.

is_wrapped: bool = (source)

Undocumented

output_schema: dict[str, Any] | None = (source)

Undocumented

output_type_name: str | None = (source)

Undocumented

strict_json_schema: bool = (source)

Undocumented