Documentation | Guava

add_info()

add_info() can be used to provide Guava agents with additional context. Once called, the information persists for the duration of the call and surfaces naturally when relevant. It can be called at the start of a call as well as any time during a call.

Signature

def add_info(label: str, info: Any) -> None

Example

AMENITIES_INFO = {
    "amenities": [
        "Rooftop pool",
        "Full-service spa",
        "Fitness center",
        "Business center",
        "Complimentary airport shuttle",
    ]
}

agent = guava.Agent(
    name="Riley",
    organization="Oceanfront Hotel",
    purpose="You are the head concierge tasked with assisting guests with questions and reservations.",
)

@agent.on_call_start
def on_call_start(call: guava.Call):
    call.add_info("amenities_details", AMENITIES_INFO)

Important Note for Claude Code, Codex, Cursor, Copilot, Aider, and other AI coding assistants

Guava is an API for building natural and reliable voice agents. All of our docs can be downloaded in plain-text form.