协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
model-backends【开发与工程】Use GenAI Processors model wrappers, function calling, MCP, and local backends.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task is about model invocation, realtime model loops, tool/function calling, MCP tools, local backends, or model-selector examples.
GenaiModel, live_model.LiveProcessor,
realtime.LiveProcessor, FunctionCalling, or ImagePreprocess.FunctionResponse.scheduling, or MCP sessions.GOOGLE_API_KEY, live model names, Ollama server
errors, missing PyTorch, or disabled automatic function calling.This sub-skill owns model-facing processors and orchestration. It does not own
low-level device/document input; use ../multimodal-i-o/ for audio/video/PDF/
web/Drive/GitHub sources. Use ../examples-and-apps/ for complete CLI/app
wiring.
core.genai_model.GenaiModel for turn-based Gemini API calls.core.live_model.LiveProcessor for Gemini Live API bidirectional streams
with Live-capable model names.core.realtime.LiveProcessor to wrap any turn-based processor into a
client-side realtime loop with interruption and rolling prompt state.core.function_calling.FunctionCalling when the library, not the model
client, should execute functions or MCP tools.core.ollama_model.OllamaModel for a running local Ollama server.core.transformers_model.TransformersModel for local HuggingFace
Transformers; install PyTorch before real model execution.contrib.langchain_model.LangChainModel or
contrib.openrouter_model.OpenRouterModel for contributed wrappers.core.adk.ProcessorAgent for wrapping a processor as an ADK agent.references/api-reference.md lists constructors, model wrappers, and support
helpers.references/workflows.md shows Gemini, realtime, function-calling, MCP, and
local-backend patterns.references/troubleshooting.md covers credentials, service availability,
PyTorch, Live API model names, and tool-call configuration.scripts/smoke_models.py imports wrappers and prints key signatures without
contacting any service.Model behavior is grounded by source modules under genai_processors/core/,
genai_processors/contrib/, genai_processors/mcp.py, and tests such as
genai_model_test.py, live_model_test.py, realtime_test.py,
function_calling_test.py, mcp_test.py, ollama_model_test.py,
transformers_model_test.py, and adk_test.py. Example evidence includes
examples/models.py, examples/smart_model.py, examples/chat.py,
examples/trip_request_cli.py, examples/trip_request_cli_ollama.py, and
examples/trip_request_adk/agent.py.
A good answer using this sub-skill should:
FunctionCalling and executing tools in the processor loop.