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

# From Str • Rust AI Agent SDK

> from_str: Parse from string

# from\_str

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

> This is a method of the [**RewriteStrategy**](../classes/RewriteStrategy) class in the [**specialized\_agents**](../modules/specialized_agents) module.

Parse from string

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def from_str(s: &str) -> Option<Self>
```

## Parameters

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

### Returns

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