Skip to main content

getByAgent

client.fileUpdateIntents.getByAgent(agentId: string, params?: Record<string, unknown>): Promise<FileUpdateIntent[]>

Retrieves file update intents for a specific agent.

Returns all intents registered by a particular agent, including their status, associated files, and metadata. Useful for monitoring an agent's active operations.

Parameters

ParameterTypeRequiredDescription
agentIdstringYesThe unique identifier of the agent
paramsRecord<string, unknown>NoOptional query parameters for filtering intents

Returns

Promise<FileUpdateIntent[]> — A promise that resolves to an array of FileUpdateIntent objects

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.fileUpdateIntents.getByAgent('agentId');
console.log(result);