Function model

  • model decorator to associate a model identifier with an agent.

    Parameters

    Returns ClassDecorator

    A class decorator function.

    @model('openai:gpt-4-mini')
    class MyAgent extends Agent<string, string> {}