Skip to main content

LangGraph adapter for Azure AI Agent Server

Project description

Azure AI Agent Server Adapter for LangGraph Python

Getting started

pip install azure-ai-agentserver-langgraph

Key concepts

Azure AI Agent Server wraps your LangGraph agent, and host it on the cloud.

Examples

# your existing agent
from my_langgraph_agent import my_awesome_agent

# langgraph utils
from azure.ai.agentserver.langgraph import from_langgraph

if __name__ == "__main__":
    # with this simple line, your agent will be hosted on http://localhost:8088
    from_langgraph(my_awesome_agent).run()

Note If your langgraph agent was not using langgraph's builtin MessageState, you should implement your own LanggraphStateConverter and provide to from_langgraph.

Reference this example for more details.

Troubleshooting

First run your agent with azure-ai-agentserver-langgraph locally.

If it works on local but failed on cloud. Check your logs in the application insight connected to your Azure AI Foundry Project.

Next steps

Please visit Samples folder. There are several samples for you to build your agent with azure-ai-agentserver-* packages

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the [Microsoft Open Source Code of Conduct][code_of_conduct]. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

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

azure_ai_agentserver_langgraph-1.0.0b2.tar.gz (33.2 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file azure_ai_agentserver_langgraph-1.0.0b2.tar.gz.

File metadata

File hashes

Hashes for azure_ai_agentserver_langgraph-1.0.0b2.tar.gz
Algorithm Hash digest
SHA256 4fc9f117c6906cddd2d240251afa769b736c8a99e50166441c59b2fcb0529fb7
MD5 bc19e8b8017d0f57cad5fd4d94a81089
BLAKE2b-256 f9526910da069462e34e5b26cd08b8c61c8d01599b3ef650d0c2adf62776597e

See more details on using hashes here.

File details

Details for the file azure_ai_agentserver_langgraph-1.0.0b2-py3-none-any.whl.

File metadata

File hashes

Hashes for azure_ai_agentserver_langgraph-1.0.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 acd2a18103bf313eb77ed4b30f45ef184da4494d99a6b76d378dfb05b70cc207
MD5 50e3b7f43acf1f2b3279fe1000ea1e49
BLAKE2b-256 42607be957fa319c6fd9c9498b92179181f988d180718d205643430658cb990f

See more details on using hashes here.

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