Shared#
Schemas#
Represents a tool call requested by the LLM. |
|
Represents a standard response from an LLM. |
|
Represents the JSON Schema for the parameters of a tool. |
|
A universal schema for defining a tool that can be used by an LLM. |
|
Represents a single message in a conversation with an LLM. |
|
Represents a list of messages to be sent to an LLM as part of a request. |
|
A universal schema for defining a tool that can be used by an LLM. |
Utilities#
|
Converts a Unix timestamp to a human-readable 'YYYY-MM-DD HH:MM:SS' format. |
|
Formats a duration in seconds into a human-readable string. |
|
Retrieves all instances of a target class created within a function. |
|
Creates a dictionary with default values from a TypedDict class. |