Conversation
Initialization
import { Conversation } from '@obayd/agentic';
// Your LLM callback (async generator function)
async function* llmCallback(messages, options) {
// ... fetch response from LLM and yield string chunks ...
}
// Basic initialization
const conversation = new Conversation(llmCallback);
// Initialization with options
const conversationWithOptions = new Conversation(llmCallback, {
initialEnabledToolpacks: ['web_search_tools'] // Pre-enable a toolpack ( less common )
});
Defining Content (.content())
Sending Messages (.send(...))
Message History (.messages)
Enabled Toolpacks (.enabledToolpacks)
Last updated