Agent Session
The AgentSession
integrates all the components into a cohesive workflow, creating a complete agent interaction system.
Key Features:​
- Component orchestration
- Session lifecycle management
- Context handling
Example Implementation:​
from videosdk.agents import AgentSession
def make_context():
return {"meetingId": "<Meeting-ID>", "name": "<Agent-Name>"}
# Initialize the agent session with all components
session = AgentSession(
agent=VoiceAgent(),
pipeline=pipeline,
context=make_context
)
# Start the agent session
session.start()
Got a Question? Ask us on discord