Skip to content

API Reference parrot.flows.dev_loop.dispatchers.gemini

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.flows.dev_loop.dispatchers.gemini

View source

GeminiCodeDispatcher — orchestration glue between AgentsFlow and Gemini CLI.

Mirrors the public dispatch contract of :class:ClaudeCodeDispatcher and :class:CodexCodeDispatcher so Development can choose the Google Gemini Agent (headless CLI, --output-format stream-json) as a coding-agent backend without changing the dev-loop graph.

Alias ClaudeCodeDispatchProfile

Re-exported from parrot.flows.dev_loop.models.ClaudeCodeDispatchProfile.

Alias CommandOutcome

Re-exported from parrot.knowledge.wiki.experience.models.CommandOutcome.

Alias DispatchEvent

Re-exported from parrot.flows.dev_loop.models.DispatchEvent.

Alias DispatchExecutionError

Re-exported from parrot.flows.dev_loop.dispatchers._shared.DispatchExecutionError.

Alias DispatchLabels

Re-exported from parrot.flows.dev_loop.models.DispatchLabels.

Alias DispatchOutputValidationError

Re-exported from parrot.flows.dev_loop.dispatchers._shared.DispatchOutputValidationError.

Alias ExperienceInterceptor

Re-exported from parrot.flows.dev_loop.experience.ExperienceInterceptor.

Alias GeminiCodeDispatchProfile

Re-exported from parrot.flows.dev_loop.models.GeminiCodeDispatchProfile.

Class GeminiCodeDispatcher

Thin orchestration class over gemini --output-format stream-json.

The class mirrors the public dispatch contract of :class:ClaudeCodeDispatcher and :class:CodexCodeDispatcher so Development can choose a coding-agent backend without changing the dev-loop graph.

Parameter Type Default Description
max_concurrent int
redis_url str
stream_ttl_seconds int
gemini_bin str 'gemini'

Method GeminiCodeDispatcher.dispatch

Dispatch a single Gemini CLI session and return its parsed output.

dispatch(*, brief: BaseModel, profile: Any, output_model: Type[T], run_id: str, node_id: str, cwd: str, session_host: Optional[SessionHost] = None, labels: Optional[DispatchLabels] = None) -> T

Parameter Type Default Description
brief BaseModel
profile Any
output_model Type[T]
run_id str
node_id str
cwd str
session_host Optional[SessionHost] None
labels Optional[DispatchLabels] None

Returns: T

Alias SessionHost

Re-exported from parrot.flows.dev_loop.session_state.SessionHost.

Alias T

Re-exported from parrot.flows.dev_loop.dispatchers._shared.T.

Alias bind_labels

Re-exported from parrot.flows.dev_loop.dispatchers._shared.bind_labels.

Alias conf

Re-exported from parrot.conf.

Alias load_subagent_definition

Re-exported from parrot.flows.dev_loop._subagent_defs.load_subagent_definition.

Alias normalize_payload

Re-exported from parrot.flows.dev_loop.dispatchers._shared.normalize_payload.

Alias redact

Re-exported from parrot.knowledge.wiki.experience.fastpath.redact.

Alias summarize_tool_input

Re-exported from parrot.flows.dev_loop.dispatchers._shared.summarize_tool_input.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally