nat.plugins.data_flywheel.observability.schema.sink.elasticsearch.dfw_es_record#
Attributes#
Classes#
Finish reason for chat completion responses. |
|
Function call structure used in both requests and responses. |
|
Tool call structure used in responses. |
|
Assistant message structure used in responses. |
|
System message structure used in requests. |
|
User message structure used in requests. |
|
Tool message structure used in responses. |
|
Function message structure used in responses. |
|
Function parameters structure used in responses. |
|
Function details structure used in requests. |
|
Request tool structure used in requests. |
|
Request structure used in requests. |
|
Response message structure used in responses. |
|
Response choice structure used in responses. |
|
Response structure used in responses. |
|
Data Flywheel Elasticsearch record. |
Module Contents#
- logger#
- class FinishReason#
-
Finish reason for chat completion responses.
Initialize self. See help(type(self)) for accurate signature.
- STOP = 'stop'#
- LENGTH = 'length'#
- TOOL_CALLS = 'tool_calls'#
- class Function(/, **data: Any)#
Bases:
pydantic.BaseModelFunction call structure used in both requests and responses.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.
- class ToolCall(/, **data: Any)#
Bases:
pydantic.BaseModelTool call structure used in responses.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- type_: Literal['function'] = None#
- class AssistantMessage(/, **data: Any)#
Bases:
pydantic.BaseModelAssistant message structure used in responses.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- role: Literal['assistant', 'ai'] = None#
- class SystemMessage(/, **data: Any)#
Bases:
pydantic.BaseModelSystem message structure used in requests.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- role: Literal['system'] = None#
- class UserMessage(/, **data: Any)#
Bases:
pydantic.BaseModelUser message structure used in requests.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- role: Literal['user', 'human'] = None#
- class ToolMessage(/, **data: Any)#
Bases:
pydantic.BaseModelTool message structure used in responses.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- role: Literal['tool'] = None#
- class FunctionMessage(/, **data: Any)#
Bases:
pydantic.BaseModelFunction message structure used in responses.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- role: Literal['function', 'chain'] = None#
- type Message = SystemMessage | UserMessage | AssistantMessage | ToolMessage | FunctionMessage#
- class FunctionParameters(/, **data: Any)#
Bases:
pydantic.BaseModelFunction parameters structure used in responses.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- type_: Literal['object'] = None#
- class FunctionDetails(/, **data: Any)#
Bases:
pydantic.BaseModelFunction details structure used in requests.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- parameters: FunctionParameters = None#
- class RequestTool(/, **data: Any)#
Bases:
pydantic.BaseModelRequest tool structure used in requests.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- type: Literal['function'] = None#
- function: FunctionDetails = None#
- class ESRequest(/, **data: Any)#
Bases:
pydantic.BaseModelRequest structure used in requests.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- model_config#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- tools: list[RequestTool] | None = None#
- class ResponseMessage(/, **data: Any)#
Bases:
pydantic.BaseModelResponse message structure used in responses.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.
- class ResponseChoice(/, **data: Any)#
Bases:
pydantic.BaseModelResponse choice structure used in responses.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- message: ResponseMessage = None#
- finish_reason: FinishReason | None = None#
- class Response(/, **data: Any)#
Bases:
pydantic.BaseModelResponse structure used in responses.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- model_config#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- choices: list[ResponseChoice] | None = None#
- class DFWESRecord(/, **data: Any)#
Bases:
pydantic.BaseModelData Flywheel Elasticsearch record.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- model_config#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- contract_version: nat.plugins.data_flywheel.observability.schema.sink.elasticsearch.contract_version.ContractVersion = None#
- validate_data_consistency() Self#