CursorAgentResult
Defined in: cursor.ts:19
@jbcom/agentic-providers
LLM and agent provider implementations for use with @jbcom/agentic-triage.
These implementations connect the provider-agnostic primitives from @jbcom/agentic-triage to real LLM services like Ollama, Jules, and Cursor.
Example
Section titled “Example”import { AgentRegistry, evaluateComplexity, TaskRouter } from '@jbcom/agentic-triage';import { createOllamaAgent, createOllamaEvaluator, createJulesAgent } from '@jbcom/agentic-providers';
// Create evaluator for complexity scoringconst evaluate = createOllamaEvaluator({ url: 'http://ollama:11434' });
// Set up agent registry with your preferred providersconst registry = new AgentRegistry() .register(createOllamaAgent('ollama', { url: 'http://ollama:11434' })) .register(createJulesAgent('jules', { apiKey: process.env.JULES_API_KEY }));
// Create routerconst router = new TaskRouter({ registry });
// Evaluate and route a taskconst score = await evaluateComplexity(evaluate, 'Fix the bug', diff);const result = await router.route(task, score);Properties
Section titled “Properties”agentId
Section titled “agentId”agentId:
string
Defined in: cursor.ts:21
Agent ID
messages?
Section titled “messages?”
optionalmessages:object[]
Defined in: cursor.ts:25
Output messages
content
Section titled “content”content:
string
role:
string
status
Section titled “status”status:
string
Defined in: cursor.ts:23
Current status