Domain sections attach business context to your traces, giving Maestro richer signal for evaluation. Each section is a dataclass you can pass as a keyword argument to send_task(), create_task_data(), or TraceBuilder.set_section().

How to Use

# As keyword argument
client.send_task(
    name="Handle ticket",
    description="Resolved a billing inquiry.",
    duration=3.2,
    customer={"customer_name": "Acme Corp", "customer_email": "[email protected]"},
    support={"issue_type": "billing", "priority": "high", "resolution": "Refund issued"},
)

# With TraceBuilder
trace = TraceBuilder("Handle ticket", "Resolved a billing inquiry.")
trace.set_section("customer", Customer(customer_name="Acme Corp"))
trace.set_section("support", Support(issue_type="billing", priority="high"))

You can pass either a dataclass instance or a plain dict (auto-coerced).


Customer

Context about the customer the agent is serving.

from infinium import Customer
FieldTypeDefaultDescription
customer_namestrNoneCustomer’s name
customer_emailstrNoneCustomer’s email
customer_phonestrNoneCustomer’s phone number
customer_addressstrNoneCustomer’s address
client_companystrNoneCompany name
client_industrystrNoneIndustry vertical

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


Support

Context for support/helpdesk interactions.

from infinium import Support
FieldTypeDefaultDescription
call_idstrNoneTicket or call identifier
issue_descriptionstrNoneDescription of the issue
issue_typestrNoneCategory (billing, technical, etc.)
resolutionstrNoneHow the issue was resolved
prioritystrNonePriority level (low, medium, high, critical)
follow_up_requiredstrNoneWhether follow-up is needed
agent_notesstrNoneInternal notes

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


Sales

Context for sales pipeline activities.

from infinium import Sales
FieldTypeDefaultDescription
lead_sourcestrNoneWhere the lead came from
sales_stagestrNonePipeline stage (prospecting, negotiation, etc.)
deal_valuestrNoneDeal value
conversion_ratestrNoneConversion rate
sales_notesstrNoneSales notes

Example use case: Lead scoring agent, proposal generator.


Marketing

Context for marketing campaigns and activities.

from infinium import Marketing
FieldTypeDefaultDescription
campaign_namestrNoneCampaign identifier
campaign_typestrNoneType (email, social, ads, etc.)
target_audiencestrNoneTarget demographic
marketing_channelstrNoneDistribution channel
engagement_metricsstrNoneEngagement data
conversion_metricsstrNoneConversion data

Example use case: Content generator, audience segmentation agent.


Content

Context for content creation tasks.

from infinium import Content
FieldTypeDefaultDescription
content_typestrNoneType (blog, email, social post, etc.)
content_formatstrNoneFormat (markdown, HTML, plain text)
content_lengthstrNoneLength or word count
content_topicstrNoneTopic or subject
target_platformstrNonePublishing platform

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


Research

Context for research and analysis tasks.

from infinium import Research
FieldTypeDefaultDescription
research_topicstrNoneTopic being researched
research_methodstrNoneMethodology used
data_sourcesstrNoneSources consulted
research_findingsstrNoneSummary of findings
analysis_typestrNoneType of analysis
sources_consultedstrNoneNumber/list of sources
key_findingsstrNoneKey takeaways
confidence_levelstrNoneConfidence in findings
data_qualitystrNoneQuality assessment of data

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


Project

Context for project management activities.

from infinium import Project
FieldTypeDefaultDescription
project_namestrNoneProject identifier
project_phasestrNoneCurrent phase
deliverablesstrNoneExpected deliverables
stakeholdersstrNoneKey stakeholders
project_statusstrNoneCurrent status
milestone_achievedstrNoneMilestone completed
task_prioritystrNoneTask priority
resource_utilizationstrNoneResource usage
risk_assessmentstrNoneRisk level
blockersstrNoneCurrent blockers

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


Development

Context for software development tasks.

from infinium import Development
FieldTypeDefaultDescription
programming_languagestrNoneLanguage used
framework_usedstrNoneFramework or library
bugs_foundstrNoneNumber of bugs found
bugs_fixedstrNoneNumber of bugs fixed
test_coveragestrNoneTest coverage percentage
performance_metricsstrNonePerformance data
deployment_statusstrNoneDeployment state
technical_debtstrNoneTech debt assessment
files_modifiedstrNoneFiles changed
tests_runstrNoneNumber of tests run
tests_passedstrNoneNumber of tests passed

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


Executive

Context for executive and meeting activities.

from infinium import Executive
FieldTypeDefaultDescription
meeting_typestrNoneType of meeting
attendees_countstrNoneNumber of attendees
agenda_itemsstrNoneMeeting agenda
action_itemsstrNoneAction items generated
calendar_conflictsstrNoneScheduling conflicts
decisions_madestrNoneDecisions reached

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


General

Catch-all section for general-purpose context.

from infinium import General
FieldTypeDefaultDescription
tools_usedstrNoneTools the agent used
agent_notesstrNoneFree-form agent notes
errors_encounteredstrNoneErrors hit during execution
retriesstrNoneNumber of retries
warningsstrNoneWarnings generated
external_apis_calledstrNoneExternal APIs called
data_sources_accessedstrNoneData sources used
tagsstrNoneComma-separated tags

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


TimeTracking

Simple start/end time tracking.

from infinium import TimeTracking
FieldTypeDefaultDescription
start_timestrNoneISO 8601 start timestamp
end_timestrNoneISO 8601 end timestamp

Multiple Sections

You can attach multiple domain sections to a single trace:

client.send_task(
    name="Research & report",
    description="Researched market trends and generated a report.",
    duration=12.5,
    research={"research_topic": "AI market trends", "sources_consulted": "5"},
    content={"content_type": "report", "content_length": "2500 words"},
    customer={"client_company": "Acme Corp", "client_industry": "Technology"},
)