> ## 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.

# patch • AI Agent SDK

> patch: Protocol alias for :meth:`patch_skill`.

# patch

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**SkillManager**](../classes/SkillManager) class in the [**manager**](../modules/manager) module.

Protocol alias for :meth:`patch_skill`.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def patch(name: str, old_string: str, new_string: str, file_path: Optional[str], replace_all: bool, propose: Optional[bool]) -> dict
```

## Parameters

<ParamField query="name" type="str" required={true}>
  No description available.
</ParamField>

<ParamField query="old_string" type="str" required={true}>
  No description available.
</ParamField>

<ParamField query="new_string" type="str" required={true}>
  No description available.
</ParamField>

<ParamField query="file_path" type="Optional[str]" required={false}>
  No description available.
</ParamField>

<ParamField query="replace_all" type="bool" required={false} default="False">
  No description available.
</ParamField>

<ParamField query="propose" type="Optional[bool]" required={false}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="dict">
  The result of the operation.
</ResponseField>

## Uses

* `patch_skill`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/skills/manager.py#L1678">
  `praisonaiagents/skills/manager.py` at line 1678
</Card>
