Clean up log.group
This commit is contained in:
@@ -316,6 +316,15 @@ export const log = {
|
||||
*/
|
||||
endGroup,
|
||||
|
||||
/**
|
||||
* Run a callback within a collapsed group
|
||||
*/
|
||||
group: (name: string, fn: (log: typeof log) => void): void => {
|
||||
startGroup(name);
|
||||
fn(log);
|
||||
endGroup();
|
||||
},
|
||||
|
||||
/**
|
||||
* Log tool call information to console with formatted output
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user