MCPcopy
hub / github.com/zhayujie/CowAgent / error

Method error

agent/protocol/result.py:85–92  ·  view source on GitHub ↗

Create an error result

(cls, error_message: str, step_count: int = 0)

Source from the content-addressed store, hash-verified

83
84 @classmethod
85 def error(cls, error_message: str, step_count: int = 0) -> "AgentResult":
86 """Create an error result"""
87 return cls(
88 final_answer=f"Error: {error_message}",
89 step_count=step_count,
90 status="error",
91 error_message=error_message
92 )
93
94 @property
95 def is_error(self) -> bool:

Callers 15

_run_channelMethod · 0.80
runFunction · 0.80
callMethod · 0.80
call_streamMethod · 0.80
agent_replyMethod · 0.80
_decorate_replyMethod · 0.80
_sendMethod · 0.80
build_reply_contentMethod · 0.80
startupMethod · 0.80
_run_loopMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected