NetworkPlugin
autogen.beta.network.client.plugin.NetworkPlugin #
Bases: Plugin
Attaches an Agent to a network.
Adds say and delegate to agent.tools so the LLM sees them on every turn — the verbs are stable for the life of the registration. Also appends NetworkContextPolicy to the agent's assembly chain.
Source code in autogen/beta/network/client/plugin.py
register #
Wire tools + assembly policy onto the agent. Idempotent-ish.
Calling register more than once on the same agent will add the tools / policies again. HubClient.register only attaches once per (Agent, identity), so this is rare in practice.
Source code in autogen/beta/network/client/plugin.py
hitl_hook #
Source code in autogen/beta/agent.py
prompt #
prompt(func: None = None) -> Callable[[PromptHook], PromptHook]
Source code in autogen/beta/agent.py
tool #
tool(function=None, *, name=None, description=None, schema=None, sync_to_thread=True, middleware=())