syndisco.Actor

class Actor(model: BaseModel, persona: Persona, context: str, instructions: str, actor_type: ActorType)

Bases: object

An abstract class representing an actor which responds according to an underlying LLM instance.

describe() str

Get a description of the actor’s internals.

Returns:

A brief description of the actor

Return type:

dict

final get_name() str

Get the actor’s assigned name within the conversation.

Returns:

The name of the actor.

Return type:

str

final speak(history: list[str]) str

Prompt the actor to speak, given a history of previous messages in the conversation.

Parameters:

history (list[str]) – A list of previous messages.

Returns:

The actor’s new message

Return type:

str