This API allows you to create an individual log span that can be associated with an existing trace.
type field that determines the structure. Supported types include:type: String identifying the span typeprovider: String identifying the provider of the modelmodel: String identifying the modelinput: JSON string containing input data, either exactly the payload sent to the LLM provider (using REST API) or using Adaline types.output: JSON string containing output data, either exactly the response received from the LLM provider (using REST API) or using Adaline types.input.messages: refer to MessageType.input.config: refer to ConfigType.input.tools: refer to ToolType.output.messages: refer to MessageType.output.tokenUsage.promptTokens: Number of tokens used for the prompt.output.tokenUsage.completionTokens: Number of tokens used for the completion.output.tokenUsage.totalTokens: Total number of tokens used.cost: Number representing the cost of the span (in USD)variables: JSON object containing variable values. key is the variable name and value is the variable value of type ContentType.parentReferenceId for each ‘ModelStream’ span to the parent span’s referenceId.type: Must be “ModelStream”provider: String identifying the provider of the modelmodel: String identifying the modelinput: JSON string containing input data, either exactly the payload sent to the LLM provider (using REST API) or using Adaline types.output: String containing the streaming response chunk.aggregateOutput: JSON string containing the accumulated response up to this chunk.type: String identifying the span typeinput: JSON string containing input dataoutput: JSON string containing output datatraceId or traceReferenceId must be providedstartedAt must be before endedAt