Skip to main content

No project description provided

Project description

agentic-layer-sdk-msaf

Microsoft Agent Framework adapter for the Agentic Layer SDK.

This package provides utilities to convert a Microsoft Agent Framework agent into an instrumented A2A Starlette web application.

Usage

from agent_framework import Agent
from agenticlayer.msaf.agent_to_a2a import to_a2a
from agenticlayer.msaf.client import create_openai_client

agent = Agent(
    client=create_openai_client(),
    name="MyAgent",
    instructions="You are a helpful assistant.",
)
app = to_a2a(agent, name="MyAgent", rpc_url="http://localhost:8000/")
# Then run with: uvicorn module:app

Configuration

OpenAI-compatible gateway (LiteLLM proxy)

Set the following environment variables to point the agent at an OpenAI-compatible gateway such as LiteLLM proxy:

Variable Description
LITELLM_PROXY_API_BASE Base URL of the gateway, e.g. http://litellm-proxy:4000
LITELLM_PROXY_API_KEY API key for the gateway
OPENAI_CHAT_MODEL_ID Model name to use, e.g. gpt-4o

create_openai_client() reads these variables automatically and passes them to OpenAIChatClient as base_url and api_key.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentic_layer_sdk_msaf-0.13.2.tar.gz (80.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentic_layer_sdk_msaf-0.13.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file agentic_layer_sdk_msaf-0.13.2.tar.gz.

File metadata

  • Download URL: agentic_layer_sdk_msaf-0.13.2.tar.gz
  • Upload date:
  • Size: 80.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for agentic_layer_sdk_msaf-0.13.2.tar.gz
Algorithm Hash digest
SHA256 2f1163e52e47061a442145011adfac8df7698986e191c83bd437a46c8ba67bca
MD5 b1169cd18d3ec9ba7d334c9738e2525a
BLAKE2b-256 b7a63d1add6b54e3713bd47fd32a9e931efd52a575c321caf72515eb1ed105ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentic_layer_sdk_msaf-0.13.2.tar.gz:

Publisher: publish.yml on agentic-layer/sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentic_layer_sdk_msaf-0.13.2-py3-none-any.whl.

File metadata

File hashes

Hashes for agentic_layer_sdk_msaf-0.13.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cf71f002960f11915b351c1dbfe1250e421c8d185f0199a7503f0066e9b88136
MD5 d4e54078cad1270c5475d4972906a557
BLAKE2b-256 431175ca57fdeafcebdc2aa4854f22b35ceb4dc18d9d8bf9d4895bc9f276effe

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentic_layer_sdk_msaf-0.13.2-py3-none-any.whl:

Publisher: publish.yml on agentic-layer/sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page