Experimental / preview API. Agents live in the genkit/exp and ai/exp packages and are gated behind an opt-in. Initialize Genkit with genkit.WithExperimental() or the constructors panic. Import paths and signatures may change in any minor release. An agent is a persistent, multi-turn conversation primitive built on top of prompts + tools. Compared to a bare genkit.Generate loop, an agent adds: Read the file for the level you need: Agents span a few packages. These aliases are used throughout the agent…
1 project uses a version of this
21k2mo agoReviewMountCreate a free account to mount
Beta / preview API. Agents are not yet stable. Server APIs come from genkit/beta; the browser client comes from genkit/beta/client. Import paths and signatures may change. Always use genkit/beta, not genkit, for agents. Requires genkit >= 1.39.0. An agent is a persistent, multi-turn conversation primitive built on top of prompts + tools. Compared to a bare ai.generate/ai.definePrompt loop, an agent adds: Progressive disclosure — read the file for the level you need: ai.defineAgent combines prompt + tool config + (optional)…
1 project uses a version of this
21k2mo agoReviewMountCreate a free account to mount
Preview API under genkit.agent. Turn a model + tools into a durable conversation — history, typed state, approvals, branches, and background work. Deeper topics: sessions · HITL · branching · background · state · artifacts · custom · HTTP Options worth knowing: use (middleware), state_schema, max_turns (tool loop depth per user message), transforms. Dotprompt agents: ai.define_prompt_agent. Full control: define_custom_agent. Tool parameters should be a small Pydantic model — even for one field. Empty inputs need an empty subclass, not bare…
21k2mo agoReviewMountCreate a free account to mount
Critical: These guidelines MUST be followed at all times. Write every user-visible artifact in ASD-STE100 Simplified Technical English, and keep it short. This covers a comment, KDoc, a commit message,…
No other project uses it yet
21k58d agoReviewMountCreate a free account to mount
Rules for this directory and every directory below it. They override the root AGENTS.md. More intellij.java.* modules live outside this tree, under ../plugins/ and ../platform/. This file does not reach…
No other project uses it yet
21k58d agoReviewMountCreate a free account to mount
This document defines machine-readable instructions and technical guardrails for AI coding assistants, agents, and LLMs working on the Filament repository. All AI-generated code, refactorings, and cleanups must strictly adhere to the standardized skills located under the skills/ directory. AI agents must consult and strictly follow the corresponding skill files for each respective development and validation phase:
No other project uses it yet
21k3y agoReviewMountCreate a free account to mount
Welcome to the repository for Pydantic AI, an open source provider-agnostic GenAI agent framework (and LLM library) for Python, maintained by the team behind Pydantic Validation and Pydantic Logfire. Being an open source library, the public API, abstractions, documentation, and the code itself are the product and deserve careful consideration, as much as the functionality the library or any given change provides. This means that when implementing a feature or other change, the "how" is as important as the "what",…
No other project uses it yet
20k2mo agoReviewMountCreate a free account to mount
Follow the general documentation guidance. These rules cover published Markdown under docs/. The docs index and repository README tell the same story on two surfaces. Keep their shared wording and code examples synchronized while preserving the markup each renderer needs:
No other project uses it yet
20k2mo agoReviewMountCreate a free account to mount
Rules for the Pydantic AI Harness pages. They add to docs/AGENTS.md. Where these rules or docs-conventions.md differ from docs/AGENTS.md, such as the version-promise blockquote, they apply under docs/harness/. Read docs-conventions.md before you add, rename, or edit a page. - Each capability page has a twin: the README.md in the capability's package under src/pydantic_ai_harness/pydantic_ai_harness/. Update both for every user-facing change. - Keep this directory flat. Do not add capabilities/ or experimental/ subdirectories. - Follow "Writing style" in src/pydantic_ai_harness/AGENTS.md. - Run the…
20k2mo agoReviewMountCreate a free account to mount
All of docs/AGENTS.md applies. Realtime-specific rules, distilled from maintainer review; the source-tree counterpart is pydantic_ai/realtime/AGENTS.md. Each page owns its concept; a rule is stated once on its owning page and linked from everywhere else: overview.md (front door, provider matrix, limitations table — every limitation row links a tracking issue), audio.md (media I/O: audio, images, transcripts), events.md (event vocabulary and its overlap with standard run events; the turn-boundary rule lives here), turns.md, tools.md (tools only), capabilities.md (per-hook support story), history.md, deployment.md…
20k2mo agoReviewMountCreate a free account to mount
Durable execution integrations are first-class compatibility targets. Build new integrations on the public pydantic_ai.durable_exec surface. Subclass BaseDurabilityCapability for the agent-facing capability and provide a DurableOperationBackend from get_durable_operation_backend. Do not copy the model, toolset, event, or capability-operation collection machinery into the integration. Choose the backend tier from the engine SDK's execution model: - Subclass CallableOperationBackend when the SDK accepts an async callback at invocation time. Implement execute to run that callback in one named durable unit. The base owns parameter and…
20k2mo agoReviewMountCreate a free account to mount
Since 3971 we decided to introduce the policy of sticking to the lower (existing) version requirement. In short, this means: - version requirement bumps are disallowed - new functionality should be gated behind version checks (including imports) - older versions don't error out when they encounter new functionality, but instead skip it The inbound half of that last rule lives in ag_ui/_forward_compat.py: AG-UI's Message and InputContent are discriminated unions, so a role or type added after the installed version is…
20k2mo agoReviewMountCreate a free account to mount
Rules for the pydantic-ai-harness package in src/pydantic_ai_harness/. They add to the root AGENTS.md. Test rules are in tests/harness/AGENTS.md. Docs page rules are in docs/harness/AGENTS.md. Paths in this file are relative to the repository root. pydantic-ai-harness is the first-party capability library for Pydantic AI. Pydantic AI core owns the primitive runtime: agent loop semantics, normalized messages, model/provider/profile behavior, tool execution semantics, durable execution primitives, and generic capability hooks. Harness owns optional, batteries-included compositions built from those primitives: coding-agent tools, guardrails, memory,…
20k2mo agoReviewMountCreate a free account to mount