Skip to content

Add maxTokens and temperature config options to CLI #118

@bhouston

Description

@bhouston

Add maxTokens and temperature config options to CLI

Description

Currently, the CLI allows users to configure modelProvider and modelName, but doesn't provide options to customize maxTokens and temperature parameters for the model.

Proposed Changes

  • Add maxTokens config option with a default value of 4096
  • Add temperature config option
  • Update the generateText function in toolAgentCore.ts to use these parameters
  • Update tests and documentation

Implementation Details

  • Add these options to the configuration in a similar fashion to how modelProvider and modelName are specified
  • Pass these values to the generateTextProps in the toolAgentCore.ts file
  • Ensure backward compatibility

Acceptance Criteria

  • Config options for maxTokens and temperature are added
  • Default value of 4096 is set for maxTokens
  • Parameters are correctly passed to the generateText function
  • Tests are updated and passing
  • Documentation is updated

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions