LLMChatSession
classin packageklyn.llm
public class LLMChatSession extends Object:
High-level chat session with history, tool-calling and optional compaction.
Constructors
| Modifier and Type |
Member |
Description |
| public |
LLMChatSession |
Creates a session bound to one provider. |
Methods
| Modifier and Type |
Member |
Description |
| public |
ask |
Sends one user prompt and returns the final assistant answer. |
| public |
thread |
Returns the current thread history. |
| public |
withCompactor |
Configures context compaction. |
| public |
withMaxToolCalls |
Configures the maximum number of tool round-trips. |
| public |
withSystem |
Sets or replaces the system prompt. |
| public |
withTools |
Attaches a tool registry. |