> ## Documentation Index
> Fetch the complete documentation index at: https://docs.goguava.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# add_info()

> Give the agent additional context for the call

<Tabs>
  <Tab title="Python">
    `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.

    ```python signature theme={null}
    def add_info(label: str, info: Any) -> None
    ```
  </Tab>

  <Tab title="TypeScript">
    `addInfo()` 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.

    ```typescript signature theme={null}
    addInfo(label: string, info: any): Promise<void>
    ```
  </Tab>
</Tabs>

## Example

<Tabs>
  <Tab title="Python">
    ```python example.py theme={null}
    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)
    ```
  </Tab>

  <Tab title="TypeScript">
    ```typescript example.ts theme={null}
    const AMENITIES_INFO = {
      amenities: [
        "Rooftop pool",
        "Full-service spa",
        "Fitness center",
        "Business center",
        "Complimentary airport shuttle",
      ],
    };

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

    agent.onCallStart(async (call: guava.Call) => {
      await call.addInfo("amenities_details", AMENITIES_INFO);
    })
    ```
  </Tab>
</Tabs>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.