MCPcopy Index your code
hub / github.com/docker/docker-agent / TestAssistantMessage

Function TestAssistantMessage

pkg/app/transcript/transcript_test.go:20–34  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

18}
19
20func TestAssistantMessage(t *testing.T) {
21 t.Parallel()
22 sess := session.New(
23 session.WithUserMessage("Hello"),
24 )
25 sess.AddMessage(&session.Message{
26 AgentName: "root",
27 Message: chat.Message{
28 Role: chat.MessageRoleAssistant,
29 Content: "Hello to you too",
30 },
31 })
32 content := PlainText(sess)
33 golden.Assert(t, content, "assistant_message.golden")
34}
35
36func TestAssistantMessageWithReasoning(t *testing.T) {
37 t.Parallel()

Callers

nothing calls this directly

Calls 5

NewFunction · 0.92
WithUserMessageFunction · 0.92
PlainTextFunction · 0.85
AssertMethod · 0.80
AddMessageMethod · 0.65

Tested by

no test coverage detected