MCPcopy Index your code
hub / github.com/coder/coder / toolCallContentToPart

Function toolCallContentToPart

coderd/x/chatd/chatloop/chatloop_run_internal_test.go:104–112  ·  view source on GitHub ↗
(toolCall fantasy.ToolCallContent)

Source from the content-addressed store, hash-verified

102}
103
104func toolCallContentToPart(toolCall fantasy.ToolCallContent) fantasy.ToolCallPart {
105 return fantasy.ToolCallPart{
106 ToolCallID: toolCall.ToolCallID,
107 ToolName: toolCall.ToolName,
108 Input: toolCall.Input,
109 ProviderExecuted: toolCall.ProviderExecuted,
110 ProviderOptions: fantasy.ProviderOptions(toolCall.ProviderMetadata),
111 }
112}
113
114func toolResultContentToPart(toolResult fantasy.ToolResultContent) fantasy.ToolResultPart {
115 return fantasy.ToolResultPart{

Calls 1

ProviderOptionsMethod · 0.45

Tested by

no test coverage detected