> ## 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 Config • AI Agent SDK

> from_config: Create workspace from bot configuration.

# from\_config

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

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

Create workspace from bot configuration.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def from_config(config: Optional[object]) -> 'Workspace'
```

## Parameters

<ParamField query="config" type="Optional[object]" required={true}>
  BotConfig or similar configuration object
</ParamField>

### Returns

<ResponseField name="Returns" type="'Workspace'">
  Configured Workspace instance
</ResponseField>

## Uses

* `Path.home`
* `expanduser`
* `Path`
* `cls`

## Used By

* [`CustomMemory.from_config`](../functions/CustomMemory-from_config)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/workspace/__init__.py#L106">
  `praisonaiagents/workspace/__init__.py` at line 106
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Configuration Overview" icon="gear" href="/docs/docs/configuration/index" />

  <Card title="Agent Config" icon="robot" href="/docs/docs/configuration/agent-config" />
</CardGroup>
