MCPcopy
hub / github.com/landing-ai/vision-agent / generate_code

Method generate_code

vision_agent/agent/agent.py:35–41  ·  view source on GitHub ↗
(
        self,
        chat: List[AgentMessage],
        max_steps: Optional[int] = None,
        code_interpreter: Optional[CodeInterpreter] = None,
    )

Source from the content-addressed store, hash-verified

33class AgentCoder(Agent):
34 @abstractmethod
35 def generate_code(
36 self,
37 chat: List[AgentMessage],
38 max_steps: Optional[int] = None,
39 code_interpreter: Optional[CodeInterpreter] = None,
40 ) -> Union[CodeContext, InteractionContext, ErrorContext]:
41 pass
42
43 @abstractmethod
44 def generate_code_from_plan(

Callers 2

maybe_run_actionFunction · 0.45
run_custom_tool.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected