(partType string)
| 869 | } |
| 870 | |
| 871 | func canonicalContentType(partType string) string { |
| 872 | switch partType { |
| 873 | case string(fantasy.StreamPartTypeToolCall), string(fantasy.ContentTypeToolCall): |
| 874 | return string(fantasy.ContentTypeToolCall) |
| 875 | case string(fantasy.StreamPartTypeToolResult), string(fantasy.ContentTypeToolResult): |
| 876 | return string(fantasy.ContentTypeToolResult) |
| 877 | default: |
| 878 | return partType |
| 879 | } |
| 880 | } |
| 881 | |
| 882 | func appendNormalizedStreamContent( |
| 883 | content []normalizedContentPart, |
no outgoing calls
no test coverage detected