Skip to content
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

add python min version to code blocks #550

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ These functions can be passed directly into [evaluate()](https://langsmith-sdk.r
<CodeTabs
groupId="client-language"
tabs={[
python`
python({caption: "Requires `langsmith>=0.1.145`"})`
from langsmith import evaluate

def correct(outputs: dict, reference_outputs: dict) -> bool:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ To evaluate our chain we can pass it directly to the `evaluate()` / `aevaluate()
<CodeTabs
groupId="client-language"
tabs={[
python`
python({caption: "Requires `langsmith>=0.1.145`"})`
from langsmith import aevaluate, Client

client = Client()
Expand Down
6 changes: 3 additions & 3 deletions docs/evaluation/how_to_guides/evaluation/langgraph.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ And a simple evaluator:
<CodeTabs
groupId="client-language"
tabs={[
python`
python({caption: "Requires `langsmith>=0.1.145`"})`

judge_llm = init_chat_model("gpt-4o")

Expand Down Expand Up @@ -184,7 +184,7 @@ If any of you nodes are defined as async, you'll need to use `aevaluate`
<CodeTabs
groupId="client-language"
tabs={[
python`
python({caption: "Requires `langsmith>=0.1.145`"})`
from langsmith import aevaluate

def example_to_state(inputs: dict) -> dict:
Expand Down Expand Up @@ -217,7 +217,7 @@ For example, we can look at the messages to assert that the model invoked the 's
<CodeTabs
groupId="client-language"
tabs={[
python`
python({caption: "Requires `langsmith>=0.1.145`"})`

def right_tool(outputs: dict) -> bool:
tool_calls = outputs["messages"][1].tool_calls
Expand Down
Loading