@salesforce/agents
    Preparing search index...

    Function getHistoryDir

    • returns a path, and ensures it's created, to the agents history directory

      Initialize session directory Session directory structure: .sfdx/agents//sessions// ├── transcript.jsonl # All transcript entries (one per line) ├── traces/ # Individual trace files │ ├── .json │ └── .json └── metadata.json # Session metadata (start time, end time, planIds, etc.)

      Parameters

      • agentId: string

        gotten from Agent.getAgentIdForStorage()

      • sessionId: string

        the preview's start call .SessionId

      Returns Promise<string>

      path to where history/metadata/transcripts are stored inside of local .sfdx