MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / appendUser

Method appendUser

src/core/session.ts:104–110  ·  view source on GitHub ↗

Append a user message to the session.

(content: string | ContentBlock[], provider: SessionEntry['provider'] = 'human')

Source from the content-addressed store, hash-verified

102
103 /** Append a user message to the session. */
104 async appendUser(content: string | ContentBlock[], provider: SessionEntry['provider'] = 'human'): Promise<SessionEntry> {
105 return this.append({
106 type: 'user',
107 message: { role: 'user', content },
108 provider,
109 })
110 }
111
112 /** Append an assistant message to the session. */
113 async appendAssistant(

Callers

nothing calls this directly

Calls 1

appendMethod · 0.95

Tested by

no test coverage detected