Skip to content

Commit

Permalink
add python min version to code blocks (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
baskaryan authored Nov 25, 2024
1 parent 1a148ed commit 414ef2c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

0 comments on commit 414ef2c

Please sign in to comment.