(part_id, tool, *, input=None, output=None)
| 247 | |
| 248 | |
| 249 | def _tool_part(part_id, tool, *, input=None, output=None): |
| 250 | return { |
| 251 | "type": "message.part.updated", |
| 252 | "properties": { |
| 253 | "part": { |
| 254 | "id": part_id, |
| 255 | "type": "tool", |
| 256 | "tool": tool, |
| 257 | "input": input or {}, |
| 258 | "output": output, |
| 259 | } |
| 260 | }, |
| 261 | } |
| 262 | |
| 263 | |
| 264 | def _step_finish(input_tokens, output_tokens): |
no outgoing calls
no test coverage detected