function applyAndGetMutableSession(
prompt: Parameters<typeof applySystemPromptOverrideToSession>[1],
) { const { session } = createMockSession();
applySystemPromptOverrideToSession(session as unknown as AgentSession, prompt); return {
mutable: session,
};
}
describe("applySystemPromptOverrideToSession", () => {
it("applies a string override to the session system prompt", () => { const prompt = "You are a helpful assistant with custom context."; const { mutable } = applyAndGetMutableSession(prompt);
it("applies a function override to the session system prompt", () => { const override = createSystemPromptOverride("function-based prompt"); const { mutable } = applyAndGetMutableSession(override);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.