Domain sections attach business context to your traces, giving Maestro richer signal for evaluation. Each section is a TypeScript interface you can pass as a property on sendTask(), sendTaskData(), or via TraceBuilder.setSection().

How to Use

// As a property on sendTask()
await client.sendTask({
  name: 'Handle ticket',
  description: 'Resolved a billing inquiry.',
  duration: 3.2,
  customer: { customerName: 'Acme Corp', customerEmail: '[email protected]' },
  support: { issueType: 'billing', priority: 'high', resolution: 'Refund issued' },
});

// With TraceBuilder
const trace = new TraceBuilder('Handle ticket', 'Resolved a billing inquiry.');
trace.setSection('customer', { customerName: 'Acme Corp' });
trace.setSection('support', { issueType: 'billing', priority: 'high' });

Customer

Context about the customer the agent is serving.

import type { Customer } from 'infinium-o2';
FieldTypeDescription
customerNamestring | undefinedCustomer’s name
customerEmailstring | undefinedCustomer’s email
customerPhonestring | undefinedCustomer’s phone number
customerAddressstring | undefinedCustomer’s address
clientCompanystring | undefinedCompany name
clientIndustrystring | undefinedIndustry vertical

Example use case: Customer support agent, account management bot.


Support

Context for support/helpdesk interactions.

import type { Support } from 'infinium-o2';
FieldTypeDescription
callIdstring | undefinedTicket or call identifier
issueDescriptionstring | undefinedDescription of the issue
issueTypestring | undefinedCategory (billing, technical, etc.)
resolutionstring | undefinedHow the issue was resolved
prioritystring | undefinedPriority level
followUpRequiredstring | undefinedWhether follow-up is needed
agentNotesstring | undefinedInternal notes

Example use case: Ticket classifier, auto-resolution agent.


Sales

Context for sales pipeline activities.

import type { Sales } from 'infinium-o2';
FieldTypeDescription
leadSourcestring | undefinedWhere the lead came from
salesStagestring | undefinedPipeline stage
dealValuestring | undefinedDeal value
conversionRatestring | undefinedConversion rate
salesNotesstring | undefinedSales notes

Example use case: Lead scoring agent, proposal generator.


Marketing

Context for marketing campaigns and activities.

import type { Marketing } from 'infinium-o2';
FieldTypeDescription
campaignNamestring | undefinedCampaign identifier
campaignTypestring | undefinedType (email, social, ads, etc.)
targetAudiencestring | undefinedTarget demographic
marketingChannelstring | undefinedDistribution channel
engagementMetricsstring | undefinedEngagement data
conversionMetricsstring | undefinedConversion data

Example use case: Content generator, audience segmentation agent.


Content

Context for content creation tasks.

import type { Content } from 'infinium-o2';
FieldTypeDescription
contentTypestring | undefinedType (blog, email, social post, etc.)
contentFormatstring | undefinedFormat (markdown, HTML, plain text)
contentLengthstring | undefinedLength or word count
contentTopicstring | undefinedTopic or subject
targetPlatformstring | undefinedPublishing platform

Example use case: Blog writer, social media manager, newsletter generator.


Research

Context for research and analysis tasks.

import type { Research } from 'infinium-o2';
FieldTypeDescription
researchTopicstring | undefinedTopic being researched
researchMethodstring | undefinedMethodology used
dataSourcesstring | undefinedSources consulted
researchFindingsstring | undefinedSummary of findings
analysisTypestring | undefinedType of analysis

Example use case: Market research agent, competitive analysis bot.


Project

Context for project management activities.

import type { Project } from 'infinium-o2';
FieldTypeDescription
projectNamestring | undefinedProject identifier
projectPhasestring | undefinedCurrent phase
deliverablesstring | undefinedExpected deliverables
stakeholdersstring | undefinedKey stakeholders
projectStatusstring | undefinedCurrent status
milestoneAchievedstring | undefinedMilestone completed
taskPrioritystring | undefinedTask priority
resourceUtilizationstring | undefinedResource usage
riskAssessmentstring | undefinedRisk level

Example use case: Sprint planning agent, status report generator.


Development

Context for software development tasks.

import type { Development } from 'infinium-o2';
FieldTypeDescription
programmingLanguagestring | undefinedLanguage used
frameworkUsedstring | undefinedFramework or library
bugsFoundstring | undefinedNumber of bugs found
bugsFixedstring | undefinedNumber of bugs fixed
testCoveragestring | undefinedTest coverage percentage
performanceMetricsstring | undefinedPerformance data
deploymentStatusstring | undefinedDeployment state
technicalDebtstring | undefinedTech debt assessment

Example use case: Code review agent, test generation bot, CI/CD automation.


Executive

Context for executive and meeting activities.

import type { Executive } from 'infinium-o2';
FieldTypeDescription
meetingTypestring | undefinedType of meeting
attendeesCountstring | undefinedNumber of attendees
agendaItemsstring | undefinedMeeting agenda
actionItemsstring | undefinedAction items generated
calendarConflictsstring | undefinedScheduling conflicts

Example use case: Meeting summarizer, agenda planner, action item tracker.


General

Catch-all section for general-purpose context.

import type { General } from 'infinium-o2';
FieldTypeDescription
toolsUsedstring | undefinedTools the agent used
agentNotesstring | undefinedFree-form agent notes

Example use case: Any agent that doesn’t fit a specific domain.


TimeTracking

Simple start/end time tracking.

import type { TimeTracking } from 'infinium-o2';
FieldTypeDescription
startTimestring | undefinedISO 8601 start timestamp
endTimestring | undefinedISO 8601 end timestamp

Multiple Sections

You can attach multiple domain sections to a single trace:

await client.sendTask({
  name: 'Research & report',
  description: 'Researched market trends and generated a report.',
  duration: 12.5,
  research: { researchTopic: 'AI market trends', dataSources: '5 reports' },
  content: { contentType: 'report', contentLength: '2500 words' },
  customer: { clientCompany: 'Acme Corp', clientIndustry: 'Technology' },
});