-
Notifications
You must be signed in to change notification settings - Fork 538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid type error on every message #333
Comments
Try to reinstall smolagents because your code is working :
|
My bad, I've completely omitted the imports but the important line was there... I was importing telemetry file which does the following: from opentelemetry.sdk.trace import TracerProvider
from os import environ
from openinference.instrumentation.smolagents import SmolagentsInstrumentor
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
from opentelemetry.sdk.trace.export import SimpleSpanProcessor
endpoint = environ.get("OTLP_SPAN_EXPORTER_ENDPOINT", "http://127.0.0.1:6006/v1/traces")
trace_provider = TracerProvider()
trace_provider.add_span_processor(SimpleSpanProcessor(OTLPSpanExporter(endpoint)))
SmolagentsInstrumentor().instrument(tracer_provider=trace_provider) I can confirm that the message stops appearing after disabling tracing.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With simplest example using
CodeAgent
I'm getting the following error on every agent message:Python 3.12.8
smolagents v1.4.1
The text was updated successfully, but these errors were encountered: