算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
outputs-and-messages【设计与创意】Guides agents designing Pydantic AI output contracts, structured outputs, output functions, multimodal message content, and message history serialization or replay.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task is about what an agent returns, how output is validated, how model messages are represented, or how previous messages should be serialized, trimmed, replayed, or adapted for application frontends.
output_type, TextOutput, ToolOutput, NativeOutput, PromptedOutput, StructuredDict, output functions, or output validators.ModelMessage objects, multimodal content, tool-call/return message pairs, JSON persistence, or UI adapter message boundaries.TestModel, message serialization, and multimodal parts are importable and usable.../agent-core/ for Agent.run, run_sync, run_stream, iter, dependencies, usage limits, basic message-history continuation, and testing strategy.../tools-and-toolsets/ when deciding whether something should be a normal function tool/toolset instead of a final output function.../models-and-providers/ for provider-specific native structured-output compatibility, model profiles, settings, optional extras, and provider media support.../cli-and-apps/ or ../mcp-and-integrations/ for CLI/web rendering, AG-UI, Vercel AI, MCP, durable execution, or deep adapter wiring beyond message boundary rules.TypedDict output type for ordinary typed final answers; omit str when plain text must not be accepted as a fallback.ToolOutput(...) for provider-portable structured output; use NativeOutput(...) only after checking provider compatibility.PromptedOutput(...) as the broadest fallback for models without reliable tool or native structured output, accepting lower enforcement.ModelRetry, or handoff logic that ends the run.ModelMessagesTypeAdapter or result JSON helpers, and preserve complete tool-call/return adjacency when trimming or replaying history.