Overview
Call is a protocol interface that represents a call or room session. Any EdgeTransport implementation must return objects conforming to this protocol from their create_call() method.
Protocol Definition
Call is defined as a Python Protocol, meaning any object with an id property satisfies the interface:
Properties
The unique identifier of the call session. This ID is used to:
- Reference the call across the transport layer
- Create shareable join links
- Associate chat channels and other resources
Usage
You don’t instantiateCall directly. Instead, you receive Call objects from your EdgeTransport implementation:
GetStream Implementation
When usingStreamEdge, the Call object is GetStream’s StreamCall class, which provides additional methods:
Type Checking
The Call protocol enables type-safe code without coupling to specific implementations:Creating Custom Implementations
To create a custom Call implementation, simply provide anid property:
Integration with Agent
Calls are typically created and joined as part of agent initialization:See Also
- EdgeTransport - Creating and managing calls
- Connection - Active call session management