(serialized: string)
| 48 | const decodeRole = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.String)); |
| 49 | |
| 50 | const decodePath = (serialized: string): readonly string[] => |
| 51 | Array.from(serialized.matchAll(PATH_SEGMENT_MATCHER), (match) => match[1] ?? match[2] ?? ""); |
| 52 | |
| 53 | export type ParsedToolCall = { |
| 54 | /** The path segments under `tools`, e.g. `["github", "issues", "create"]`. |