Skip to content

CoreAgents

Namespace: E2E

public static class CoreAgents

createAgent from @e2e-dev/core/agent: the agent over one session, configured in code. Upstream’s core/agent.ts.

Inheritance: object

View source

public static CoreAgent CreateAgent(Session session, CreateAgentOptions options)

Creates an agent over <code class=“paramref”>session</code>. With Cache, its ActAsync replays flows, each named by its CacheKey, and records them when the session closes. A missing model fails the first call that needs one as MODEL_UNAVAILABLE, never the creation.

Parameters

Name Type Description
session Session
options CreateAgentOptions

Returns: CoreAgent