Generation functionality for Components integration.
Name | Type | Description |
---|---|---|
config | Union[GenerationConfig, GenerationConfigDict] | The config to get the dict from. |
Name | Description |
---|---|
config | Either a TraceConfig object or a TraceConfigDict dictionary. |
Name | Description |
---|---|
config | The config to initialize the generation with. |
writer | The writer to use. |
Name | Description |
---|---|
writer | The LogWriter instance to use. |
id | The ID of the trace to set the provider for. |
provider | The provider to set. |
Name | Description |
---|---|
provider | The provider to set. |
Name | Description |
---|---|
writer | The LogWriter instance to use. |
id | The ID of the trace to set the model for. |
model | The model to set. |
Name | Description |
---|---|
model | The model to set. |
Name | Description |
---|---|
writer | The LogWriter instance to use. |
id | The ID of the trace to add the message to. |
message | The message to add. |
Name | Description |
---|---|
message | The message to add. |
Name | Description |
---|---|
writer | The LogWriter instance to use. |
id | The ID of the trace to set the model parameters for. |
model_parameters | The model parameters to set. |
Name | Description |
---|---|
model_parameters | The model parameters to set. |
Name | Description |
---|---|
attachment | The attachment to add. |
Name | Description |
---|---|
writer | The LogWriter instance to use. |
generation_id | The ID of the generation to add the attachment to. |
attachment | The attachment to add. |
Name | Description |
---|---|
writer | The LogWriter instance to use. |
id | The ID of the trace to add the result to. |
result | The result to add. |
Name | Description |
---|---|
writer | The LogWriter instance to use. |
id | The ID of the trace to end. |
data | The data to add to the trace. |
Name | Description |
---|---|
writer | The LogWriter instance to use. |
id | The ID of the trace to add the tag to. |
key | The key of the tag to add. |
value | The value of the tag to add. |
Name | Description |
---|---|
chat_completion | The chat completion to convert. |
Name | Description |
---|---|
result | The result to convert. |
Name | Description |
---|---|
result | The result to add. |
Name | Description |
---|---|
error | The error to add. |
Name | Description |
---|---|
writer | The LogWriter instance to use. |
id | The ID of the trace to add the error to. |
error | The error to add. |