Interface IAgenticaRpcService<Model>

RPC interface of AI agent service.

IAgenticaRpcService is an interface defining an AI agent service provided from the server to client through the RPC (Remote Procedure Call) paradigm in the websocket protocol.

The client will call the conversate function remotely, and the server responses to the client by calling the client's IAgenticaRpcListener functions remotely too.

Samchon

interface IAgenticaRpcService<Model extends ILlmSchema.Model> {
    conversate(content: string): Promise<void>;
    getControllers(): Promise<IAgenticaController<Model>[]>;
}

Type Parameters

  • Model extends ILlmSchema.Model

Implemented by

Methods

  • Conversate with the AI agent.

    User talks to the AI agent with the content.

    When AI agent responds some actions like conversating or executing LLM (Large Language Model) function calling, the functions defined in the IAgenticaRpcListener would be called through the RPC (Remote Procedure Call) paradigm.

    Parameters

    • content: string

      The content to talk

    Returns Promise<void>

    Returned when the conversation process is completely done