Skip to content

(Openinference Migration: Langchain) Add support for legacy OpenAI function call (PR #2)#281

Draft
rads-1996 wants to merge 3 commits into
open-telemetry:mainfrom
rads-1996:langchain-legacy-function-call
Draft

(Openinference Migration: Langchain) Add support for legacy OpenAI function call (PR #2)#281
rads-1996 wants to merge 3 commits into
open-telemetry:mainfrom
rads-1996:langchain-legacy-function-call

Conversation

@rads-1996

@rads-1996 rads-1996 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Description

Part of #272

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How has this been tested?

Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. List any relevant details for your test
configuration.

  • uv run tox -e py312-test-instrumentation-genai-langchain -- -q
  • uv run tox -e py312-test-instrumentation-genai-langchain-conformance -- -q
  • uv run --python 3.12 tox -e lint-instrumentation-genai-langchain

Checklist

See CONTRIBUTING.md
for the style guide, changelog guidance, and more.

  • Followed the style guidelines of this project
  • Changelog updated if the change requires an entry
  • Unit tests added
  • Documentation updated

@rads-1996 rads-1996 changed the title (Openinference Migration: Langchain) Add support for Langchain legacy function call (PR #2) (Openinference Migration: Langchain) Add support for legacy OpenAI function call (PR #2) Jul 17, 2026
Surface pre-tools OpenAI `additional_kwargs['function_call']` as a ToolCallRequest in both input and output messages, matching the modern tool_calls path.
@rads-1996
rads-1996 force-pushed the langchain-legacy-function-call branch from f7335e3 to ce0567b Compare July 17, 2026 20:28
@opentelemetry-pr-dashboard

Copy link
Copy Markdown

Pull request dashboard status

  • Waiting on: Author
  • Next step: Move out of draft to request review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant