Skip to content

custom

GitInfo dataclass

GitInfo(
    user: Optional[str] = None,
    email: Optional[str] = None,
    branch: Optional[str] = None,
    commit_hash: Optional[str] = None,
)

Git information.

MetaData dataclass

MetaData(
    appl_version: str,
    cwd: str,
    run_cmd: str,
    git_info: GitInfo,
    exec_file_path: str,
    exec_file_basename: str,
    start_time: str,
    dotenvs: List[str],
    appl_config_files: List[str],
    log_file: Optional[str] = None,
    trace_file: Optional[str] = None,
)

Metadata for the run.

ResponseType

Bases: str, Enum

The type of generation response.

IMAGE class-attribute instance-attribute

IMAGE = 'image'

An image.

OBJECT class-attribute instance-attribute

OBJECT = 'obj'

An instance of a response model.

TEXT class-attribute instance-attribute

TEXT = 'text'

A text completion.

TOOL_CALL class-attribute instance-attribute

TOOL_CALL = 'tool_calls'

A list of tool calls.

UNFINISHED class-attribute instance-attribute

UNFINISHED = 'unfinished'

The response is not finished.