Skip to main content

Function: createTicketWorkerTools()

createTicketWorkerTools(opts): Record<string, ZodToolDefinition<any, any>>

Defined in: packages/orchestration/src/tools/ticket-worker-tools.ts:94

Creates update_ticket and propose_ticket bound to a single ticket id.

Parameters

opts

TicketWorkerToolsOptions

Returns

Record<string, ZodToolDefinition<any, any>>

Example

const ticketTools = createTicketWorkerTools({
ticketId: ticket.id,
ticketStore: team.stores.tickets,
events: team.events,
});

const bot = Baleybot.create({
name: 'worker',
goal: 'Resolve the ticket',
tools: { ...ticketTools },
});