You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When reproducing the code with telemetry (docs/source/en/tutorials/inspect_runs.md). There is an error from the telemetry with the message format.
Code to reproduce the error
from opentelemetry import trace
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor
from openinference.instrumentation.smolagents import SmolagentsInstrumentor
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
from opentelemetry.sdk.trace.export import ConsoleSpanExporter, SimpleSpanProcessor
endpoint = "http://0.0.0.0:6006/v1/traces"
trace_provider = TracerProvider()
trace_provider.add_span_processor(SimpleSpanProcessor(OTLPSpanExporter(endpoint)))
SmolagentsInstrumentor().instrument(tracer_provider=trace_provider)
Error logs (if any) Invalid type dict in attribute 'llm.input_messages.0.message.content' value sequence. Expected one of ['bool', 'str', 'bytes', 'int', 'float'] or None
Expected behavior
The message text property is logged
Describe the bug
When reproducing the code with telemetry (docs/source/en/tutorials/inspect_runs.md). There is an error from the telemetry with the message format.
Code to reproduce the error
Error logs (if any)
Invalid type dict in attribute 'llm.input_messages.0.message.content' value sequence. Expected one of ['bool', 'str', 'bytes', 'int', 'float'] or None
Expected behavior
The message text property is logged
Packages version:
openinference-instrumentation-smolagents==0.1.2 smolagents==1.6.0
The text was updated successfully, but these errors were encountered: