CoreAgents
Namespace: E2E
public static class CoreAgentscreateAgent from @e2e-dev/core/agent: the agent over one session, configured in code. Upstream’s core/agent.ts.
Inheritance: object
Methods
Section titled “Methods”CreateAgent(Session, CreateAgentOptions)
Section titled “CreateAgent(Session, CreateAgentOptions)”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