Skip to content

API Reference parrot_tools.procedures.agent

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

parrot_tools.procedures.agent

View source

ProceduresAgent — a gated transport adapter over ProceduresAnswerService (FEAT-601 M11, R3).

Alias AnswerOutcome

Re-exported from parrot_tools.procedures.service.AnswerOutcome.

Alias AuthorizationDenied

Re-exported from parrot_tools.procedures.retrieval.AuthorizationDenied.

Alias Clarification

Re-exported from parrot_tools.procedures.retrieval.Clarification.

Attribute PROCEDURES_SYSTEM_PROMPT

Class ProceduresAgent

ReAct-capable agent whose every channel entrypoint passes the procedures release gate.

Parameter Type Default Description
service ProceduresAnswerService The shared release service, which is the sole answer path.
context_factory Callable[[dict[str, Any]], RequestContext] Builds a trusted context from platform-session keyword arguments.
**kwargs Any {} Forwarded to :class:~parrot.bots.Agent.

Attributes:

Attribute Type Description
agent_id str

Method ProceduresAgent.agent_tools

Expose the procedures toolkit's tools to the ReAct loop.

agent_tools() -> list[Any]

Returns: list[Any]

Method ProceduresAgent.ask

Release an answer through the service using only a trusted session context.

ask(question: str, *args: Any, **kwargs: Any) -> AIMessage

Parameter Type Default Description
question str
*args Any ()
**kwargs Any {}

Returns: AIMessage

Method ProceduresAgent.ask_stream

Stream released content only; the service buffers before release.

ask_stream(question: str, *args: Any, **kwargs: Any) -> AsyncIterator[str]

Parameter Type Default Description
question str
*args Any ()
**kwargs Any {}

Returns: AsyncIterator[str]

Method ProceduresAgent.invoke

Use the same gate as :meth:ask, refusing an absent trusted session.

invoke(*args: Any, **kwargs: Any) -> Any

Parameter Type Default Description
*args Any ()
**kwargs Any {}

Returns: Any

Method ProceduresAgent.render

Render a released answer deterministically without model draft text.

render(outcome: AnswerOutcome | Clarification) -> str

Parameter Type Default Description
outcome AnswerOutcome | Clarification A released service outcome or a request for clarification.

Returns: str — Chat-safe text constructed exclusively from released fields.

Alias ProceduresAnswerService

Re-exported from parrot_tools.procedures.service.ProceduresAnswerService.

Alias ProceduresToolkit

Re-exported from parrot_tools.procedures.toolkit.ProceduresToolkit.

Alias RequestContext

Re-exported from parrot_tools.procedures.retrieval.RequestContext.

Class UngatedAnswerRefused

An entrypoint was called without the session data needed to build a trusted context.

Parameter Type Default Description
entrypoint str

Attribute logger

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