Skip to content

Conversation

marcklingen
Copy link
Member

@marcklingen marcklingen commented Jul 19, 2025

Important

Adds a new notebook for evaluating Pydantic AI MCP Agents with Langfuse, updates to Python 3.12, and modifies dependencies and scripts accordingly.

  • New Notebook:
    • Adds example_pydantic_ai_mcp_agent_evaluation.ipynb to cookbook/_routes.json and pages/guides/cookbook/example_pydantic_ai_mcp_agent_evaluation.mdx.
    • Demonstrates evaluation of Pydantic AI MCP Agents using Langfuse.
  • Python Version:
    • Sets Python version to 3.12.0 in .python-version and pyproject.toml.
    • Updates scripts/update_cookbook_docs.sh to use Python 3.12.
  • Dependencies:
    • Adds ipykernel and uv to pyproject.toml under dev dependencies.
    • Updates uv.lock to reflect new dependencies.

This description was created by Ellipsis for 4b00fe4. You can customize this summary. It will automatically update as commits are pushed.

Copy link

vercel bot commented Jul 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
langfuse-docs ✅ Ready (Inspect) Visit Preview Jul 19, 2025 7:33pm

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. documentation Improvements or additions to documentation labels Jul 19, 2025
},
"expected_output": {
"response_facts": [
"By default, traces are retained indefinetly",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: 'indefinetly' should be 'indefinitely'.

Suggested change
"By default, traces are retained indefinetly",
"By default, traces are retained indefinitely",


## 3. Create an agent that can search the Langfuse docs

We use the Lagfuse Docs MCP Server to provide tools to the agent: https://langfuse.com/docs/docs-mcp
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: 'Lagfuse Docs MCP Server' should be 'Langfuse Docs MCP Server'.

Suggested change
We use the Lagfuse Docs MCP Server to provide tools to the agent: https://langfuse.com/docs/docs-mcp
We use the Langfuse Docs MCP Server to provide tools to the agent: https://langfuse.com/docs/docs-mcp



```python
DATSET_NAME = "pydantic-ai-mcp-agent-evaluation"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: The variable name 'DATSET_NAME' seems to be misspelled. Consider renaming it to 'DATASET_NAME'.

Reasoning: The output contains "watchTv" which was not expected.
Score: 0

## This excercise
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: 'excercise' should be 'exercise'.

Suggested change
## This excercise
## This exercise

Copy link

📦 Next.js Bundle Analysis for langfuse-docs

This analysis was generated by the Next.js Bundle Analysis action. 🤖

New Page Added

The following page was added to the bundle from the code in this PR:

Page Size (compressed) First Load % of Budget (350 KB)
/guides/cookbook/example_pydantic_ai_mcp_agent_evaluation 50.3 KB 417.75 KB 119.36%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant