getAgentFromLocal
client.agents.getAgentFromLocal(): Promise<Agent>
Retrieves the agent stored in local storage.
Returns the agent configuration that has been persisted locally, typically the last-used or default agent for the current workspace.
Parameters
No parameters.
Returns
Promise<Agent> — A promise that resolves to the locally stored Agent
Example
import { CodeBoltClient } from '@codebolt/clientsdk';
const client = new CodeBoltClient();
const result = await client.agents.getAgentFromLocal();
console.log(result);