Skip to content

API Reference parrot.integrations.msteams.commands.agent_commands

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.integrations.msteams.commands.agent_commands

View source

Core agent commands for MS Teams (FEAT-XXX).

Provides AgentCommandHandler, which registers /function, /tool, /skill, /commands, /help, /clear, /whoami, /question, and /call on the MSTeamsCommandRouter, plus custom commands from config.commands.

Usage::

from parrot.integrations.msteams.commands.agent_commands import AgentCommandHandler

handler = AgentCommandHandler(agent, wrapper)
handler.register(router)

Class AgentCommandHandler

Core agent commands for MS Teams.

Registers /function, /tool, /skill, /commands, /help, /clear, /whoami, /question, /call, and custom config-mapped commands on the router.

Parameter Type Default Description
agent Any The AI-Parrot agent instance.
wrapper Any The MSTeamsAgentWrapper instance (used for response helpers and config access).

Method AgentCommandHandler.register

Register all core and custom commands on the router.

register(router: 'MSTeamsCommandRouter') -> None

Parameter Type Default Description
router 'MSTeamsCommandRouter'

Method AgentCommandHandler.handle_function

Handle /function [key=val ...] -- invoke agent method with kwargs.

handle_function(turn_context) -> None

Parameter Type Default Description
turn_context

Method AgentCommandHandler.handle_call

Handle /call [args ...] -- invoke agent method with positional args.

handle_call(turn_context) -> None

Parameter Type Default Description
turn_context

Method AgentCommandHandler.handle_tool

Handle /tool [input] -- use a specific tool via LLM.

handle_tool(turn_context) -> None

Parameter Type Default Description
turn_context

Method AgentCommandHandler.handle_skill

Handle /skill [input] -- activate a skill and query the agent.

handle_skill(turn_context) -> None

Parameter Type Default Description
turn_context

Method AgentCommandHandler.handle_question

Handle /question -- ask the LLM without tools.

handle_question(turn_context) -> None

Parameter Type Default Description
turn_context

Method AgentCommandHandler.handle_commands

Handle /commands -- list all commands, tools, skills, agent methods.

handle_commands(turn_context) -> None

Parameter Type Default Description
turn_context

Method AgentCommandHandler.handle_help

Handle /help -- show help text.

handle_help(turn_context) -> None

Parameter Type Default Description
turn_context

Method AgentCommandHandler.handle_whoami

Handle /whoami -- show agent info and user identity.

handle_whoami(turn_context) -> None

Parameter Type Default Description
turn_context

Method AgentCommandHandler.handle_clear

Handle /clear -- clear conversation history.

handle_clear(turn_context) -> None

Parameter Type Default Description
turn_context

Alias MSTeamsCommandRouter

Re-exported from parrot.integrations.msteams.commands.MSTeamsCommandRouter.

Alias parse_kwargs

Re-exported from parrot.integrations.utils.parse_kwargs.

Alias queued_spec_of

Re-exported from parrot.integrations.core.queued.queued_spec_of.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally