Skip to content

Conversation

DouweM
Copy link
Collaborator

@DouweM DouweM commented Sep 9, 2025

Summary

  • Add default ModelProfile with JSON schema and object output support when no profile is provided to FunctionModel
  • Update test_native_output to no longer pass custom profile since it's now the default
  • This enables testing native output pipeline in agents using FunctionModel

Fixes #2839

Generated with Claude Code

- Add default ModelProfile with JSON schema and object output support when no profile is provided to FunctionModel
- Update test_native_output to no longer pass custom profile since it's now the default
- This enables testing native output pipeline in agents using FunctionModel

Fixes #2839

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Douwe Maan <DouweM@users.noreply.github.com>
@DouweM DouweM self-assigned this Sep 9, 2025
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@claude Remove this file, the modified test in test_agent.py is sufficient

Copy link
Contributor

@claude claude bot Sep 9, 2025

Choose a reason for hiding this comment

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

Claude finished @DouweM's task —— View job


Removing unnecessary test file ✅

Todo List:

  • Read the file to understand what's being removed
  • Remove test_native_output_verification.py
  • Commit and push the changes

Completed! I've successfully removed the redundant test_native_output_verification.py file. The file contained a standalone test script that verified FunctionModel works with NativeOutput by default, but this functionality is already covered by the modified test in test_agent.py, making the standalone file unnecessary.

The change has been committed and pushed to the branch.

The functionality is already covered by the modified test in test_agent.py

Co-authored-by: Douwe Maan <DouweM@users.noreply.github.com>
Copy link

github-actions bot commented Sep 9, 2025

Docs Preview

commit: a9b45b6
Preview URL: https://cd25e4c8-pydantic-ai-previews.pydantic.workers.dev

@DouweM DouweM enabled auto-merge (squash) September 9, 2025 15:43
@DouweM DouweM merged commit 89c9bb6 into main Sep 9, 2025
29 checks passed
@DouweM DouweM deleted the claude/issue-2839-20250909-1529 branch September 9, 2025 15:45
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.

Support NativeOutput in FunctionModel
1 participant