MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / OpenAIChatMessage

Struct OpenAIChatMessage

pkg/aiusechat/openai/openai-backend.go:47–53  ·  view source on GitHub ↗

---------- OpenAI wire types (subset) ----------

Source from the content-addressed store, hash-verified

45// ---------- OpenAI wire types (subset) ----------
46
47type OpenAIChatMessage struct {
48 MessageId string `json:"messageid"` // internal field for idempotency (cannot send to openai)
49 Message *OpenAIMessage `json:"message,omitempty"`
50 FunctionCall *OpenAIFunctionCallInput `json:"functioncall,omitempty"`
51 FunctionCallOutput *OpenAIFunctionCallOutputInput `json:"functioncalloutput,omitempty"`
52 Usage *OpenAIUsage
53}
54
55type OpenAIMessage struct {
56 Role string `json:"role"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected