MCPcopy
hub / github.com/huggingface/smolagents / dict

Method dict

src/smolagents/memory.py:30–38  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

28 id: str
29
30 def dict(self):
31 return {
32 "id": self.id,
33 "type": "function",
34 "function": {
35 "name": self.name,
36 "arguments": make_json_serializable(self.arguments),
37 },
38 }
39
40
41@dataclass

Callers 15

dictMethod · 0.45
to_messagesMethod · 0.45
dictMethod · 0.45
get_succinct_stepsMethod · 0.45
get_full_stepsMethod · 0.45
test_exa_no_resultsMethod · 0.45
test_from_dictMethod · 0.45

Calls 1

make_json_serializableFunction · 0.90