MCPcopy Create free account
hub / github.com/Forethought-Technologies/AutoChain / AgentFinish

Class AgentFinish

autochain/agent/structs.py:38–50  ·  view source on GitHub ↗

Agent's return value.

Source from the content-addressed store, hash-verified

36
37
38class AgentFinish(BaseModel):
39 """Agent's return value."""
40
41 message: str
42 log: str
43 intermediate_steps: List[AgentAction] = []
44
45 def format_output(self) -> Dict[str, Any]:
46 final_output = {
47 "message": self.message,
48 constants.INTERMEDIATE_STEPS: self.intermediate_steps,
49 }
50 return final_output
51
52
53class AgentOutputParser(BaseModel):

Callers 10

runMethod · 0.90
take_next_stepMethod · 0.90
_runMethod · 0.90
parseMethod · 0.90
_parse_responseMethod · 0.90
parseMethod · 0.90
parse_clarificationMethod · 0.90
test_estimate_confidenceFunction · 0.90
parseMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_estimate_confidenceFunction · 0.72