Skip to main content

from_template

Method
This is a method of the Agent class in the agent module.
Create an Agent from a template.

Signature

def from_template(uri: str, config: Optional[Dict[str, Any]], offline: bool) -> 'Agent'

Parameters

uri
str
required
Template URI (local path, package ref, or github ref)
config
Optional
No description available.
offline
bool
default:"False"
No description available.

Returns

Returns
'Agent'
Configured Agent instance

Usage

- "./my-template" (local path)
        - "transcript-generator" (default recipes repo)
        - "github:owner/repo/[email protected]" (GitHub with version)
        - "package:agent_recipes/transcript-generator" (installed package)
    config: Optional configuration overrides
    offline: If True, only use cached templates (no network)
    **kwargs: Additional Agent constructor arguments