MCPcopy Create free account
hub / github.com/Louisym/MiniCC / tool_use

Method tool_use

mini_claude_code/models.py:47–48  ·  view source on GitHub ↗
(cls, id, name, input)

Source from the content-addressed store, hash-verified

45 return cls(role='tool', content = [ToolResultContentBlock(type='tool_result',id=id, name=name,output=output,is_error=is_error)])
46 @classmethod
47 def tool_use(cls, id, name, input):
48 return cls(role='assistant', content=[ToolContentBlock(type='tool_use',id=id, name=name, input=input)])
49
50class Session(BaseModel):
51 messages: list[Message] = Field(default_factory=list)

Callers

nothing calls this directly

Calls 1

ToolContentBlockClass · 0.85

Tested by

no test coverage detected