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:
toolformerToolformer - The Toolformer instance.num_attemptsint - 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_schemaTaskSchemaLike - The schema of the task.protocol_documentstr - The protocol specifications.
Returns:
str- The generated implementation code.