Shared#

Schemas#

ToolCallSchema

Represents a tool call requested by the LLM.

RequestSchema

Represents a standard response from an LLM.

ToolParameter

Represents the JSON Schema for the parameters of a tool.

OrkesToolSchema

A universal schema for defining a tool that can be used by an LLM.

OrkesMessageSchema

Represents a single message in a conversation with an LLM.

OrkesMessagesSchema

Represents a list of messages to be sent to an LLM as part of a request.

ToolDefinition

A universal schema for defining a tool that can be used by an LLM.

Utilities#

format_start_time(start_time)

Converts a Unix timestamp to a human-readable 'YYYY-MM-DD HH:MM:SS' format.

format_elapsed_time(elapsed_seconds)

Formats a duration in seconds into a human-readable string.

get_instances_from_func(func, state, ...)

Retrieves all instances of a target class created within a function.

create_dict_from_typeddict(td_cls)

Creates a dictionary with default values from a TypedDict class.

Context#