23 lines
667 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Set Conversation Parameters
You can configure conversation parameters through the `setting` parameter, the second argument of `ainvoke`:
```typescript
const messages = [
UserMessage('I just had an amazing bowl of Jirim Tangbao today'),
AssistantMessage('Got it, Ive memorized that'),
UserMessage('Can you tell me what I ate today?')
]
const result = await agent.ainvoke({
messages: messages,
settings: {
systemPrompt: 'You are a very friendly assistant',
temperature: 0.7,
// ...
}
});
console.log(result);
```
Additional parameters related to advanced MCP usage will be described in subsequent documentation.