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.0b1.tar.gz (33.1 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.0b1.tar.gz.

File metadata

File hashes

Hashes for azure_ai_agentserver_langgraph-1.0.0b1.tar.gz
Algorithm Hash digest
SHA256 6cbdacb41371b3227e2c2a4aab7345fefd5313d30c169f30559cfcabe5fdeb54
MD5 49a89b9a773bad06ea077deaa9c70995
BLAKE2b-256 b542c597847e56cc09598c21b170aed4c7fd043da729880e258544777c019cae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for azure_ai_agentserver_langgraph-1.0.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 848338cb08b894cbcc50dc5725c791c31aa6a4142645d8e7de01f478624a98a2
MD5 093e7b30c41c13fa851367e5ee00ceab
BLAKE2b-256 e83376d51034f4ea2d344705583148f5a96f1fa137ce5571e47d4015a9fc3e70

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