CursorConfig
Defined in: cursor.ts:10
@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”apiKey
Section titled “apiKey”apiKey:
string
Defined in: cursor.ts:12
Cursor API key
baseUrl?
Section titled “baseUrl?”
optionalbaseUrl:string
Defined in: cursor.ts:14
API base URL (default: https://api.cursor.com/v0)
workspacePath?
Section titled “workspacePath?”
optionalworkspacePath:string
Defined in: cursor.ts:16
Workspace path in the cloud environment