Package-level declarations

Types

Link copied to clipboard
class AgentPlatformChatSession(val user: User?, val outputChannel: OutputChannel, planLister: PlanLister, val processOptions: ProcessOptions = ProcessOptions(), val responseGenerator: ResponseGenerator, val conversation: Conversation = InMemoryConversation()) : ChatSession

Support for chat sessions leveraging an AgentPlatform.

Link copied to clipboard
class AgentProcessChatbot(agentPlatform: AgentPlatform, agentSource: AgentSource, listenerProvider: ListenerProvider = ListenerProvider { user, outputChannel -> emptyList() }) : Chatbot

Chatbot implementation backed by an AgentProcess The AgentProcess must react to messages and respond on its output channel The AgentProcess can assume that the Conversation will be available in the blackboard, and the latest UserMessage. Action methods will often take precondition being that the last event was a UserMessage. A convenient approach is for the core action methods to return ChatbotReturn, and handle ConversationOver, although that is not required.

Link copied to clipboard

Respond to user messages using an agent.

Link copied to clipboard
fun interface AgentSource
Link copied to clipboard
class AutonomyResponseGenerator(autonomy: Autonomy, goalChoiceApprover: GoalChoiceApprover, val processWaitingHandler: ProcessWaitingHandler, val chatConfig: ChatConfig) : ResponseGenerator

Respond to messages by choosing and executing goals using Autonomy. Based on last user input.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class ChatbotReturn(val assistantMessage: AssistantMessage? = null, val conversationTermination: ConversationTermination? = null) : SomeOf

Return from a chatbot agent action method

Link copied to clipboard
data class ChatConfig(val confirmGoals: Boolean = true, val bindConversation: Boolean = false, val multiGoal: Boolean = false, val model: String = OpenAiModels.GPT_41_MINI, val temperature: Double? = null)

Configuration for the chat session

Link copied to clipboard
data class ConversationTermination(val reason: String)
Link copied to clipboard
class DefaultBlackboardFormatter(entryFormatter: BlackboardEntryFormatter = DefaultBlackboardEntryFormatter) : BlackboardFormatter
Link copied to clipboard
class DefaultChatAgentBuilder(autonomy: Autonomy, llm: <Error class: unknown class>, persona: Persona = K9, promptTemplate: String = "chat/default_chat", blackboardFormatter: BlackboardFormatter = DefaultBlackboardFormatter())
Link copied to clipboard
fun interface ListenerProvider
Link copied to clipboard

Handles process waiting exceptions in a platform-specific way

Link copied to clipboard

Generates response(s) in a chat session.

Properties

Link copied to clipboard
val K9: Persona
Link copied to clipboard
val SLASH_COMMAND_REGEX: <Error class: unknown class>

Functions

Link copied to clipboard
fun parseSlashCommand(input: String): <Error class: unknown class><String, List<String>>?