ailoy-node
    Preparing search index...

    Function defineAgent

    • Define a new agent

      Parameters

      • runtime: Runtime

        The runtime environment associated with the agent

      • modelName: ModelName

        The name of the LLM model to use in this instance

      • Optionalargs: { apiKey?: string; device?: number; systemMessage?: string }
        • OptionalapiKey?: string

          A parameter for API key usage. This field is ignored if the model does not require authentication.

        • Optionaldevice?: number

          Optional device id to set the device id to run LLM model

        • OptionalsystemMessage?: string

          Optional system message to set the initial assistant context

      Returns Promise<Agent>