Heroku LangChain - v0.2.1
    Preparing search index...

    Interface HerokuMiaAgentFields

    Interface for the fields to instantiate HerokuMiaAgent. Extends BaseChatModelParams and includes Heroku-specific agent parameters. Based on SPECS.md Table: HerokuMiaAgentFields Constructor Parameters (Section 3.2.2)

    interface HerokuMiaAgentFields {
        model?: string;
        temperature?: number;
        maxTokensPerRequest?: number;
        stop?: string[];
        topP?: number;
        tools?: HerokuAgentToolDefinition[];
        apiKey?: string;
        apiUrl?: string;
        maxRetries?: number;
        timeout?: number;
        additionalKwargs?: Record<string, any>;
    }

    Hierarchy

    • BaseChatModelParams
      • HerokuMiaAgentFields
    Index

    Properties

    model?: string

    The model ID to use for the agent. If not provided, defaults to process.env.INFERENCE_MODEL_ID.

    temperature?: number

    Controls randomness of the agent's LLM responses.

    1.0
    
    maxTokensPerRequest?: number

    Max tokens per underlying inference request made by the agent.

    stop?: string[]

    List of strings that stop generation for the agent's LLM.

    null
    
    topP?: number

    Proportion of tokens to consider for the agent's LLM.

    0.999
    

    List of heroku_tool or mcp tools the agent is allowed to use.

    apiKey?: string

    Heroku API Key. Reads from env HEROKU_API_KEY if not provided.

    apiUrl?: string

    Heroku API Base URL. Defaults to inference.heroku.com.

    maxRetries?: number

    Max retries for API calls

    2
    
    timeout?: number

    Timeout for API calls in ms

    additionalKwargs?: Record<string, any>

    Allows passing any other Heroku-specific agent parameters not explicitly defined.

    {}