portia.introspection_agents.default_introspection_agent
The default introspection agent.
This agent looks at the state of a plan run between steps and makes decisions about whether execution should continue.
DefaultIntrospectionAgent Objects
class DefaultIntrospectionAgent(BaseIntrospectionAgent)
Default Introspection Agent.
Implements the BaseIntrospectionAgent interface using an LLM to make decisions about what to do.
Attributes:
config
Config - Configuration settings for the DefaultIntrospectionAgent.
__init__
def __init__(config: Config) -> None
Initialize the DefaultIntrospectionAgent with configuration.
Arguments:
config
Config - The configuration to initialize the DefaultIntrospectionAgent.
pre_step_introspection
def pre_step_introspection(plan: Plan,
plan_run: PlanRun) -> PreStepIntrospection
Ask the LLM whether to continue, skip or fail the plan_run.