Open
Conversation
- Add `docs/develop/python/integrations/langsmith.mdx` covering the LangSmithPlugin, @Traceable usage, wrap_openai, and the add_temporal_runs toggle. Modeled after the Braintrust guide. - Add LangSmith row to the Python integrations index. - Add the new page to the Python integrations sidebar. Jira: AI-141 Samples PR: temporalio/samples-python#292
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📖 Docs PR preview links
|
| --- | ||
|
|
||
| Temporal's integration with [LangSmith](https://smith.langchain.com/) gives you end-to-end traces of your AI agent | ||
| Workflows—capturing every LLM call, tool execution, and orchestration step in a single LangSmith project. |
Contributor
There was a problem hiding this comment.
Suggested change
| Workflows—capturing every LLM call, tool execution, and orchestration step in a single LangSmith project. | |
| Workflows—capturing every LLM call, tool execution, and orchestration step in a LangSmith project. |
|
|
||
| When building AI agents with Temporal, you get durable execution: automatic retries, state persistence, and recovery | ||
| from failures mid-Workflow. LangSmith adds the observability layer: see exactly what your agents do, inspect LLM | ||
| inputs and outputs, and trace a single request from the Client all the way through to the model. |
Contributor
There was a problem hiding this comment.
The usage of "single" everywhere feels like it's trying to emphasize the wrong thing.
Suggested change
| inputs and outputs, and trace a single request from the Client all the way through to the model. | |
| inputs and outputs, and trace a request from the Client all the way through to the model. |
| 1. Install the Temporal Python SDK with the LangSmith extra. | ||
|
|
||
| ```bash | ||
| pip install "temporalio[langsmith]>=1.26.0" |
|
|
||
|
|
||
| # wrap_openai patches the client — every API call adds a ChatOpenAI run under the @traceable. | ||
| # max_retries=0 because Temporal's Activity retry policy handles retries. |
Contributor
There was a problem hiding this comment.
Suggested change
| # max_retries=0 because Temporal's Activity retry policy handles retries. | |
| # Set max_retries=0 and use Temporal's Activity retry policy instead. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/develop/python/integrations/langsmithcovering thetemporalio.contrib.langsmith.LangSmithPlugin(shipped intemporalio1.26.0).@traceableusage,wrap_openaifor richer LLM runs, theadd_temporal_runstoggle, and trace hierarchy examples for both modes.