Skip to content

docs: add Pydantic AI guide + Hermes standalone provider-plugin section#75

Merged
MVS-source merged 2 commits into
mainfrom
integrations/pydantic-hermes
Jul 17, 2026
Merged

docs: add Pydantic AI guide + Hermes standalone provider-plugin section#75
MVS-source merged 2 commits into
mainfrom
integrations/pydantic-hermes

Conversation

@MVS-source

@MVS-source MVS-source commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

What

  • Pydantic AI (new guide, AI Frameworks): type-safe, structured-output agents on Eden AI's 500+ models via OpenAIChatModel + OpenAIProvider, pointed at https://api.edenai.run/v3.
  • Hermes (additive edit): new optional section "First-class provider plugin" documenting the standalone model-provider plugin route (native --provider eden-ai), alongside the existing custom-provider setup.

Files

  • v3/integrations/pydantic-ai.mdx (new) + integration-logo/pydantic-ai-icondoc.svg (new, square, brand magenta)
  • v3/integrations/hermes.mdx (edit: +1 section, dateModified bump)
  • docs.jsonpydantic-ai added to AI Frameworks

Conventions

  • Format matches existing integration docs (<TechArticleSchema> + <CodeGroup>).
  • Env var: EDEN_AI_API_KEY for Pydantic AI; Hermes keeps EDENAI_API_KEY (derived from the base-URL host).
  • Non-runnable Python snippets (pydantic-ai import; Hermes internal providers import) are marked {/* skip-test */} so the snippet-execution CI skips them.

To confirm before merge

  • Hermes plugin API (register_provider / ProviderProfile fields) vs the current plugin loader.

Summary by CodeRabbit

  • New Features

    • Added documentation for integrating Pydantic AI with the V3 API, including setup, structured outputs, conversations, and error handling.
    • Added Pydantic AI to the AI Frameworks documentation navigation.
    • Documented an optional Eden AI provider plugin for Hermes Agent.
  • Documentation

    • Updated the Hermes Agent article metadata and usage guidance.
    • Added links to related endpoints and SDK resources.

…tion

- Pydantic AI: new integration guide (AI Frameworks). Type-safe agents on
  Eden AI via OpenAIChatModel + OpenAIProvider; house-style env var
  EDEN_AI_API_KEY.
- Hermes: add an optional "First-class provider plugin" section documenting
  the standalone model-provider plugin route (native --provider eden-ai),
  alongside the existing custom-provider setup. Additive edit only.

Non-runnable Python snippets (pydantic-ai import; Hermes internal
`providers` import) are marked with {/* skip-test */} so the snippet
execution CI skips them.

Includes pydantic-ai icon SVG and docs.json nav entry.
@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown

Review Change Stack

Walkthrough

Added a Pydantic AI integration guide and navigation entry, expanded Hermes documentation with Eden AI provider-plugin instructions, and updated Hermes article metadata.

Changes

Pydantic AI Integration

Layer / File(s) Summary
Pydantic AI page metadata and navigation
v3/integrations/pydantic-ai.mdx, docs.json
Adds page metadata, structured article schema data, and the page to the AI Frameworks navigation.
Installation and core usage examples
v3/integrations/pydantic-ai.mdx
Documents installation, Eden AI V3 configuration, available models, quick starts, and structured output.
Conversation, error, and environment guidance
v3/integrations/pydantic-ai.mdx
Adds multi-turn conversation, error handling, environment variable, and next-step documentation.

Hermes Provider Plugin

Layer / File(s) Summary
First-class Hermes provider plugin
v3/integrations/hermes.mdx
Updates article metadata and documents Eden AI provider registration, plugin configuration, and CLI usage.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • edenai/docs#55: Previously added the Hermes integration page updated here.
  • edenai/docs#72: Overlaps with the Pydantic AI and Hermes documentation changes.

Suggested reviewers: tristantelleb

Poem

A rabbit hops through docs so bright,
With Pydantic models tucked just right.
Hermes gains a provider’s tune,
And navigation finds it soon.
New guides bloom beneath the moon!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main changes: a new Pydantic AI guide and an added Hermes standalone provider-plugin section.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch integrations/pydantic-hermes

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mintlify

mintlify Bot commented Jul 16, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
edenai 🟢 Ready View Preview Jul 16, 2026, 3:38 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@mintlify

mintlify Bot commented Jul 16, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
edenai 🟡 Building Jul 16, 2026, 3:36 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

…al-small-2603) in Pydantic AI + Hermes plugin snippet

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@v3/integrations/hermes.mdx`:
- Line 132: Verify that the tab name in the code-fence metadata renders visibly
as __init__.py rather than init.py; if the renderer treats underscores as
formatting, escape the underscores while preserving the intended filename.

In `@v3/integrations/pydantic-ai.mdx`:
- Line 54: The Pydantic AI documentation uses nonstandard API-key placeholders.
In v3/integrations/pydantic-ai.mdx at lines 54, 106, 131, and 162, replace
“YOUR_EDEN_AI_API_KEY” with “api_token”; at line 54, optionally mention
“sandbox_api_token” in the adjacent comment. At line 182, replace
“your_api_key_here” with “api_token”.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b497e59d-ded2-423b-811a-cb375f43fad2

📥 Commits

Reviewing files that changed from the base of the PR and between 5174e81 and 6a148e7.

⛔ Files ignored due to path filters (1)
  • integration-logo/pydantic-ai-icondoc.svg is excluded by !**/*.svg
📒 Files selected for processing (3)
  • docs.json
  • v3/integrations/hermes.mdx
  • v3/integrations/pydantic-ai.mdx


<CodeGroup>
{/* skip-test */}
```python __init__.py

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Verify the rendering of double underscores in the tab name.

If the tab name renders incorrectly as init.py, users might mistakenly name the file init.py, which would break the Python module. Please verify that it renders correctly as __init__.py, and consider escaping the underscores (e.g., \_\_init\_\_.py) if needed. As per coding guidelines, avoid using double underscores (__name__) in code blocks as they may render as bold in some contexts — always verify inside code fences.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@v3/integrations/hermes.mdx` at line 132, Verify that the tab name in the
code-fence metadata renders visibly as __init__.py rather than init.py; if the
renderer treats underscores as formatting, escape the underscores while
preserving the intended filename.

Source: Coding guidelines

model = OpenAIChatModel(
"openai/gpt-5.5",
provider=OpenAIProvider(
api_key="YOUR_EDEN_AI_API_KEY", # Get from https://app.edenai.run

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Use standard token types in code examples.

The documentation uses placeholders like YOUR_EDEN_AI_API_KEY and your_api_key_here. As per coding guidelines, code examples must distinguish token types by using api_token for production and sandbox_api_token for testing (no real provider calls).

  • v3/integrations/pydantic-ai.mdx#L54-L54: Replace "YOUR_EDEN_AI_API_KEY" with "api_token", and optionally note sandbox_api_token in the adjacent comment.
  • v3/integrations/pydantic-ai.mdx#L106-L106: Replace "YOUR_EDEN_AI_API_KEY" with "api_token".
  • v3/integrations/pydantic-ai.mdx#L131-L131: Replace "YOUR_EDEN_AI_API_KEY" with "api_token".
  • v3/integrations/pydantic-ai.mdx#L162-L162: Replace "YOUR_EDEN_AI_API_KEY" with "api_token".
  • v3/integrations/pydantic-ai.mdx#L182-L182: Replace your_api_key_here with api_token.
📍 Affects 1 file
  • v3/integrations/pydantic-ai.mdx#L54-L54 (this comment)
  • v3/integrations/pydantic-ai.mdx#L106-L106
  • v3/integrations/pydantic-ai.mdx#L131-L131
  • v3/integrations/pydantic-ai.mdx#L162-L162
  • v3/integrations/pydantic-ai.mdx#L182-L182
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@v3/integrations/pydantic-ai.mdx` at line 54, The Pydantic AI documentation
uses nonstandard API-key placeholders. In v3/integrations/pydantic-ai.mdx at
lines 54, 106, 131, and 162, replace “YOUR_EDEN_AI_API_KEY” with “api_token”; at
line 54, optionally mention “sandbox_api_token” in the adjacent comment. At line
182, replace “your_api_key_here” with “api_token”.

Source: Coding guidelines

@MVS-source
MVS-source merged commit 1a465f9 into main Jul 17, 2026
6 checks passed
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.

2 participants