> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Handoff Filters • AI Agent SDK

> handoff_filters: Common handoff input filters.

# handoff\_filters

> Defined in the [**handoff**](../modules/handoff) module.

<Badge color="blue">AI Agent</Badge>

Common handoff input filters.

## Methods

<CardGroup cols={2}>
  <Card title="remove_all_tools()" icon="function" href="../functions/handoff_filters-remove_all_tools">
    Remove all tool calls from the message history.
  </Card>

  <Card title="keep_last_n_messages()" icon="function" href="../functions/handoff_filters-keep_last_n_messages">
    Keep only the last n messages in the history.
  </Card>

  <Card title="remove_system_messages()" icon="function" href="../functions/handoff_filters-remove_system_messages">
    Remove all system messages from the history.
  </Card>
</CardGroup>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/handoff.py#L759">
  `praisonaiagents/agent/handoff.py` at line 759
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Handoffs Concept" icon="hand-holding" href="/docs/concepts/handoffs" />

  <Card title="Handoffs Feature" icon="arrow-right-arrow-left" href="/docs/features/handoffs" />
</CardGroup>
