Toolformer (Schick et al., 2023) teaches a language model to call tools by inserting API calls into its own text during training. Each annotation records the call, its arguments and the result, so the model learns when a call helps.
Implement format_api_call(name, args, result), returning the bracketed annotation.
->.Concatenate the call with its arguments in parentheses, then the arrow and the result, inside brackets.
No results yet
Run your code to check it against the examples, or submit to run every test.