# This file was auto-generated by Fern from our API Definition.

import typing

import typing_extensions


class AgentV1ReceiveFunctionCallResponseParams(typing_extensions.TypedDict):
    """
    Function call response message used bidirectionally:

    • **Client → Server**: Response after client executes a function
      marked as client_side: true
    • **Server → Client**: Response after server executes a function
      marked as client_side: false

    The same message structure serves both directions, enabling a unified
    interface for function call responses regardless of execution location.
    """

    type: typing.Literal["FunctionCallResponse"]
    """
    Message type identifier for function call responses
    """

    id: typing_extensions.NotRequired[str]
    """
    The unique identifier for the function call.
    
    • **Required for client responses**: Should match the id from
      the corresponding `FunctionCallRequest`
    • **Optional for server responses**: Server may omit when responding
      to internal function executions
    """

    name: str
    """
    The name of the function being called
    """

    content: str
    """
    The content or result of the function call
    """
