Skip to content

Documentation navigation

Provider Template

Start a new provider connector from the documented template.

#<Provider name> connector

Replace this template with the real connector docs. Keep the section ordering so every connector reads the same way. Most connectors are class-walk toolsets and use the <Provider>ToolSet name; the <Provider>Connector name is reserved for data-driven builders.

<Provider>ToolSet wraps the <Provider> API and exposes the tools an agent needs most. It is built on maivn_tools.runtime.HttpClient (or the relevant transport), and inherits retries, rate limits, and error normalization from the kernel.

Plain text
from maivn import Agent
from maivn_tools import <Provider>ToolSet, register_connector

agent = Agent(name="provider-example", model="auto")
agent.add_toolset(<Provider>ToolSet(token="..."))

# Builder-style connectors (the `<Provider>Connector` name) register
# their callables instead:
# register_connector(agent, <Provider>Connector(token="..."))

#Authentication

State the supported auth modes here. Reference the auth strategy or OAuth flow used. List the scopes the connector advertises through metadata.scopes.

ModeNotes
Bearer tokenSent as Authorization: Bearer ....
OAuth 2.0 (auth code)Use OAuth2Flow with the provider's authorize and token URLs.
API keySet via ApiKeyAuth(api_key, header=...).

#Tools

List every public tool the connector exposes. Use the same table format so users can scan quickly.

ToolPermissionDescription
tool_a(arg1, arg2)READOne-line description.
tool_b(arg1, *, arg2)WRITEOne-line description.
tool_c(arg1)DELETE (destructive)One-line description.

Include short examples for any non-obvious argument shape (cursor-based pagination, complex filter syntax, attachment payloads).

#Errors

Document any provider-specific errors and how the connector maps them onto the stable hierarchy in maivn_tools.runtime.errors. If the connector defines its own ProviderError subclass, name it here.

#Configuration

ArgumentDefaultPurpose
tokenrequiredBearer or API token.
base_urlprovider defaultOverride for tenants or test stacks.
transportNoneCustom HttpTransport, primarily for tests.
connectionNoneOptional ConnectionMetadata for host bookkeeping.

#Rate limits and pagination

Describe the provider's rate-limit headers and recommend a RateLimitPolicy. Identify the pagination convention the connector uses (cursor, page-token, offset) and point at the matching paginator helper.

#Webhooks

Only include this section if the connector ships a webhook listener. Document the signature header, algorithm, encoding, and timestamp header, and link to docs/events.md.

#Live tests

Add the required environment variables to docs/testing.md and call out any sandbox-account requirements the provider imposes here.