MCPcopy Create free account
hub / github.com/coder/coder / chainModeAssistantMessage

Function chainModeAssistantMessage

coderd/x/chatd/chatopenai/responses_test.go:945–954  ·  view source on GitHub ↗
(
	modelConfigID uuid.UUID,
	parts []codersdk.ChatMessagePart,
)

Source from the content-addressed store, hash-verified

943}
944
945func chainModeAssistantMessage(
946 modelConfigID uuid.UUID,
947 parts []codersdk.ChatMessagePart,
948) database.ChatMessage {
949 msg := chattest.ChatMessageWithParts(parts)
950 msg.Role = database.ChatMessageRoleAssistant
951 msg.ProviderResponseID = sql.NullString{String: "resp-123", Valid: true}
952 msg.ModelConfigID = uuid.NullUUID{UUID: modelConfigID, Valid: true}
953 return msg
954}
955
956func chainModeAssistantMessageWithoutResponse(
957 modelConfigID uuid.UUID,

Calls 1

ChatMessageWithPartsFunction · 0.92

Tested by

no test coverage detected