API Reference
@kyro/actor
Full API reference for the Actor class, connections, and related types.
Actor
| Parameter | Type | Description |
|---|---|---|
personalityPath | string | Path to the personality YAML file |
provider | AIProvider | AI provider for generating actor messages |
.run(scenarioPath, connection)
Run the actor scenario against a connection.
Connection interface
WebSocketConnection
LangChainConnection
Requires @langchain/core as a peer dependency.