INNER CODE UNIT · TypeScript

updateAgentName

gobii-ai/gobii-platform · misc/ts-example-client/src/index.ts:141

async function updateAgentName(
    agentId: string,
    newName: string
): Promise<AgentDetail | null> {
    console.log(`Input Agent ID: ${agentId}`);
    console.log(`Input New Name: ${newName}`);
    return handleApiCall('Update Agent Name', () =>
        browserUseApi.updateAgent(agentId, { name: newName })
    );
}

async function deleteAgent(agentId: string): Promise<boolean> {
    console.log(`Input Agent ID: ${agentId}`);
    const result = await handleApiCall('Delete Agent', () =>
        browserUseApi.deleteAgent(agentId)
    );
    return result !== null;
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…