Skip to content

API Reference parrot.tools.working_memory.tests

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

parrot.tools.working_memory.tests

View source

Tests for WorkingMemoryToolkit v2 (AbstractToolkit-compatible).

Alias AggFunc

Re-exported from parrot.tools.working_memory.tool.AggFunc.

Alias ComputeAndStoreInput

Re-exported from parrot.tools.working_memory.tool.ComputeAndStoreInput.

Alias FilterSpec

Re-exported from parrot.tools.working_memory.tool.FilterSpec.

Alias ImportFromToolInput

Re-exported from parrot.tools.working_memory.tool.ImportFromToolInput.

Alias JoinHow

Re-exported from parrot.tools.working_memory.tool.JoinHow.

Alias JoinOnSpec

Re-exported from parrot.tools.working_memory.tool.JoinOnSpec.

Alias MergeStoredInput

Re-exported from parrot.tools.working_memory.tool.MergeStoredInput.

Alias OperationSpecInput

Re-exported from parrot.tools.working_memory.tool.OperationSpecInput.

Alias OperationType

Re-exported from parrot.tools.working_memory.tool.OperationType.

Alias StoreInput

Re-exported from parrot.tools.working_memory.tool.StoreInput.

Alias SummarizeStoredInput

Re-exported from parrot.tools.working_memory.tool.SummarizeStoredInput.

Class TestAsyncMethods

Tests the async tool methods that AbstractToolkit will discover.

Method TestAsyncMethods.test_list_stored

test_list_stored(toolkit)

Parameter Type Default Description
toolkit

Method TestAsyncMethods.test_get_stored

test_get_stored(toolkit)

Parameter Type Default Description
toolkit

Method TestAsyncMethods.test_drop_stored

test_drop_stored(toolkit)

Parameter Type Default Description
toolkit

Method TestAsyncMethods.test_compute_filter

test_compute_filter(toolkit)

Parameter Type Default Description
toolkit

Method TestAsyncMethods.test_compute_aggregate

test_compute_aggregate(toolkit)

Parameter Type Default Description
toolkit

Method TestAsyncMethods.test_compute_join

test_compute_join(toolkit)

Parameter Type Default Description
toolkit

Method TestAsyncMethods.test_compute_correlate

test_compute_correlate(toolkit)

Parameter Type Default Description
toolkit

Method TestAsyncMethods.test_compute_group_correlate

test_compute_group_correlate(toolkit)

Parameter Type Default Description
toolkit

Method TestAsyncMethods.test_compute_rank

test_compute_rank(toolkit)

Parameter Type Default Description
toolkit

Method TestAsyncMethods.test_compute_select

test_compute_select(toolkit)

Parameter Type Default Description
toolkit

Method TestAsyncMethods.test_compute_describe

test_compute_describe(toolkit)

Parameter Type Default Description
toolkit

Class TestErrorHandling

Method TestErrorHandling.test_missing_source_stores_error

test_missing_source_stores_error(toolkit)

Parameter Type Default Description
toolkit

Method TestErrorHandling.test_bad_column_stores_error

test_bad_column_stores_error(toolkit)

Parameter Type Default Description
toolkit

Method TestErrorHandling.test_error_visible_in_listing

test_error_visible_in_listing(toolkit)

Parameter Type Default Description
toolkit

Class TestFullWorkflow

Method TestFullWorkflow.test_census_sales_analysis

Simulates a complete agent session analyzing census vs sales.

test_census_sales_analysis(census_df, sales_df)

Parameter Type Default Description
census_df
sales_df

Class TestImportFromTool

Method TestImportFromTool.test_import_success

test_import_success(census_df)

Parameter Type Default Description
census_df

Method TestImportFromTool.test_import_not_dataframe

test_import_not_dataframe()

Method TestImportFromTool.test_import_missing_tool

test_import_missing_tool()

Method TestImportFromTool.test_list_tool_dataframes

test_list_tool_dataframes(census_df, sales_df)

Parameter Type Default Description
census_df
sales_df

Class TestMergeAndSummarize

Method TestMergeAndSummarize.test_merge_with_key

test_merge_with_key(toolkit)

Parameter Type Default Description
toolkit

Method TestMergeAndSummarize.test_merge_concat

test_merge_concat(toolkit)

Parameter Type Default Description
toolkit

Method TestMergeAndSummarize.test_summarize

test_summarize(toolkit)

Parameter Type Default Description
toolkit

Class TestPydanticValidation

Ensures the DSL contract rejects malformed inputs.

Method TestPydanticValidation.test_valid_filter_spec

test_valid_filter_spec()

Method TestPydanticValidation.test_valid_aggregate_spec

test_valid_aggregate_spec()

Method TestPydanticValidation.test_valid_join_spec

test_valid_join_spec()

Method TestPydanticValidation.test_invalid_op_rejected

test_invalid_op_rejected()

Method TestPydanticValidation.test_invalid_join_how_rejected

test_invalid_join_how_rejected()

Method TestPydanticValidation.test_invalid_agg_func_rejected

test_invalid_agg_func_rejected()

Method TestPydanticValidation.test_compute_input_model

Validates the full ComputeAndStoreInput wrapper.

test_compute_input_model()

Method TestPydanticValidation.test_merge_input_model

test_merge_input_model()

Method TestPydanticValidation.test_summarize_input_model

test_summarize_input_model()

Alias WorkingMemoryToolkit

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

Function census_df

census_df()

Function sales_df

sales_df()

Function toolkit

toolkit(census_df, sales_df)

Parameter Type Default Description
census_df
sales_df

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