Use one of the following methods to define the channel:Using YAML:
spec_version: v1kind: channel# Required: Channel type identifierchannel: teams# Required: Name for this channel instancename: production_teams_channel# Optional: Description of this channeldescription: Main customer support Microsoft Teams channel for production environment# Required: Microsoft App Client secret (from Certificates & secrets)app_password: ${TEAMS_APP_PASSWORD}# Required: Microsoft Application (client) IDapp_id: ${TEAMS_APP_ID}# Optional: Microsoft Teams tenant ID (also called Directory ID)teams_tenant_id: ${TEAMS_TENANT_ID}
Using Python:
import osfrom ibm_watsonx_orchestrate.agent_builder.channels import TeamsChannelfrom dotenv import load_dotenvload_dotenv()channel = TeamsChannel( name="production_teams_channel", description="Main customer support Microsoft Teams channel for production environment", app_password=os.getenv("TEAMS_APP_PASSWORD"), app_id=os.getenv("TEAMS_APP_ID"), teams_tenant_id=os.getenv("TEAMS_TENANT_ID"))