agora.sender.components.programmer
SenderProgrammer Objects
class SenderProgrammer()
Generates implementations based on task schemas and protocol documents.
__init__
def __init__(toolformer: Toolformer, num_attempts: int = 5)
Initializes the SenderProgrammer.
Arguments:
toolformer
Toolformer - The Toolformer instance.num_attempts
int - Number of attempts to generate implementations.
__call__
def __call__(task_schema: TaskSchemaLike, protocol_document: str) -> str
Generates implementation code for a given schema and protocol.
Arguments:
task_schema
TaskSchemaLike - The schema of the task.protocol_document
str - The protocol specifications.
Returns:
str
- The generated implementation code.