withAgentByName

fun withAgentByName(agentPlatform: AgentPlatform, agentName: String, listenerProvider: ListenerProvider = ListenerProvider { _, outputChannel -> listOf(OutputChannelHighlightingEventListener(outputChannel)) }): Chatbot

Create a chatbot with the given agent. The agent is looked up by name from the agent platform.

Parameters

agentPlatform

the agent platform to create and manage agent processes

agentName

the name of the agent to

listenerProvider

provider for contextual event listeners