Skip to content

API Reference parrot.tools.working_memory.tests.conftest

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

parrot.tools.working_memory.tests.conftest

View source

Shared fixtures for WorkingMemoryToolkit tests.

Alias AnswerMemory

Re-exported from parrot.memory.AnswerMemory.

Alias WorkingMemoryToolkit

Re-exported from parrot.tools.working_memory.WorkingMemoryToolkit.

Function answer_memory

Create an in-memory AnswerMemory for testing.

answer_memory() -> AnswerMemory

Returns: AnswerMemory

Function census_df

Generate a synthetic US Census-style DataFrame.

census_df() -> pd.DataFrame

Returns: pd.DataFrame

Function sales_df

Generate a synthetic sales DataFrame.

sales_df() -> pd.DataFrame

Returns: pd.DataFrame

Function sample_dict

A simple nested dict fixture.

sample_dict() -> dict

Returns: dict

Function sample_message

AIMessage-like object with .content and .role attributes.

sample_message()

Function sample_text

A plain-text research finding.

sample_text() -> str

Returns: str

Function toolkit

Create a WorkingMemoryToolkit with pre-loaded census and sales DataFrames.

toolkit(census_df: pd.DataFrame, sales_df: pd.DataFrame) -> WorkingMemoryToolkit

Parameter Type Default Description
census_df pd.DataFrame
sales_df pd.DataFrame

Returns: WorkingMemoryToolkit

Function toolkit_with_memory

Create a WorkingMemoryToolkit wired to an AnswerMemory instance.

toolkit_with_memory(answer_memory: AnswerMemory) -> WorkingMemoryToolkit

Parameter Type Default Description
answer_memory AnswerMemory

Returns: WorkingMemoryToolkit

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