langgoap.MultiTracer

langgoap.MultiTracer#

class MultiTracer(tracers)[source]#

Fan a single event out to multiple tracers.

Each inner tracer is invoked in sequence; exceptions raised by an individual tracer are caught and logged so one broken tracer cannot break the planner or stop other tracers from receiving the event.

Parameters:

tracers (list[PlanningTracer])

__init__(tracers)[source]#
Parameters:

tracers (list[PlanningTracer])

Return type:

None

Methods

__init__(tracers)

aon_action_complete(result)

aon_action_retry(action, attempt, exception, ...)

aon_action_start(action, state)

aon_goal_achieved(final_state)

aon_plan_complete(plan, duration_ms)

aon_plan_failed(reason, duration_ms)

aon_plan_start(goal, state, strategy_name)

aon_replan(reason, new_plan)

aon_search_complete(nodes_explored, ...)

aon_search_dead_end(reason, detail)

aon_search_expand(node_id, state, g, h, f, ...)

aon_sensor_complete(sensor_name, updates)

aon_strategy_chosen(strategy_name)

on_action_complete(result)

on_action_retry(action, attempt, exception, ...)

on_action_start(action, state)

on_goal_achieved(final_state)

on_plan_complete(plan, duration_ms)

on_plan_failed(reason, duration_ms)

on_plan_start(goal, state, strategy_name)

on_replan(reason, new_plan)

on_search_complete(nodes_explored, ...)

on_search_dead_end(reason, detail)

on_search_expand(node_id, state, g, h, f, ...)

on_sensor_complete(sensor_name, updates)

on_strategy_chosen(strategy_name)

Attributes

reflections

Aggregate reflections from every inner tracer that exposes them.