-
Notifications
You must be signed in to change notification settings - Fork 19
Add support for crewAI's serper tool #470
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
Conversation
| print("\n\n\nTracing CrewaiTools\n\n\n") | ||
| service_provider = SERVICE_PROVIDERS["CREWAI"] | ||
| extra_attributes = baggage.get_baggage(LANGTRACE_ADDITIONAL_SPAN_ATTRIBUTES_KEY) | ||
| span_attributes = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| span_attributes = { | |
| span_attributes = { | |
| **get_langtrace_attributes(version, service_provider, vendor_type="framework) | |
| **get_extra_attributes() | |
| } |
for future reference should use helper methods from llm.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops just saw this. will update. thanks
| span.set_status(Status(StatusCode.OK)) | ||
| return result | ||
|
|
||
| except Exception as err: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| except Exception as err: | |
| except Exception as err: | |
| handle_span_error(span,err) | |
| raise |
for future ref, should use helper method
* remove logs * remove requirements * Bump version * Squash * minor * switch to http exporter * add botocore dependency * fix * fix dspy issue for handling sets * Bump trace attributes to 7.1.1 (#464) * bump trace attributes * fix * bump openai version * Minor fix (#466) * Add support for crewAI's serper tool (#470) * serper support * serper support * serper support
Description
Add support for crewAI's serper tool
Checklist for adding new integration:
APISin constants folder.SERVICE_PROVIDERSin common.pypatch.pyandinstrumentation.pyfiles.all_instrumentationsin langtrace.py and to theInstrumentationTypein types.py files.