Add powerful capabilities to your agents with tools
Tools in Julep extend your agents’ capabilities by allowing them to interact with external services and perform specific functions. There are several types of tools available:
Use built-in tools to interact with Julep’s APIs:
Copy
// Add a system tool for listing agentsconst systemTool = await client.agents.tools.create(agentId, { name: 'list_agent_docs', description: 'List all documents for the given agent', type: 'system', system: { resource: 'agent', subresource: 'doc', operation: 'list' }});
// List tools for an agentconst tools = await client.agents.tools.list(agentId);// Get a specific toolconst tool = await client.agents.tools.get(agentId, toolId);// Update a toolconst updatedTool = await client.agents.tools.update(agentId, toolId, { description: 'Updated tool description'});// Delete a toolawait client.agents.tools.delete(agentId, toolId);