Skip to main content

Native, in-process reinforcement learning SDK for AI agents — in-memory and local-file storage by default.

Project description

azure-agents-learning-sdk

Native reinforcement learning SDK for AI agents. An in-process learner optimizes a small, interpretable policy over discrete agent configuration choices (prompt variants, retrieval-k, tool selection strategies, …).

How it works

The SDK improves agents without LLM weight fine-tuning. There are no GPU fine-tune jobs and no opaque update cycles — just three pieces that run in your existing Python process:

  1. The policy is a softmax distribution over N discrete actions (e.g., "use prompt template A", "use template B"). It lives in Python and updates in milliseconds.

  2. Each episode is judged by three Azure AI Evaluation evaluators — IntentResolutionEvaluator, TaskAdherenceEvaluator, and TaskCompletionEvaluator — whose scores are combined into a single scalar reward.

  3. A REINFORCE-with-baseline learner updates the policy logits directly from logged episodes. Updates are tiny gradient steps that run on CPU and persist through a pluggable store — in-memory or local files by default, with Cosmos DB optional.

Every episode, reward, run, and deployment is captured by the configured store — in-memory or local files by default, or Cosmos DB — giving you a complete lineage and audit trail of how the policy evolved over time.

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_agents_learning_sdk-0.3.1.tar.gz (85.7 kB view details)

Uploaded Source

Built Distribution

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

azure_agents_learning_sdk-0.3.1-py3-none-any.whl (94.7 kB view details)

Uploaded Python 3

File details

Details for the file azure_agents_learning_sdk-0.3.1.tar.gz.

File metadata

File hashes

Hashes for azure_agents_learning_sdk-0.3.1.tar.gz
Algorithm Hash digest
SHA256 62878ab59cb4f4dc963fdc06dd7c18d0fd5ff4d7ce9122c88cc1a124cce04a89
MD5 27c47bec743b9f36f296ac75670872a6
BLAKE2b-256 3922c659faa8d208e623c8476d1d0b6a8c65fb6edbba8ab13149e50a460d82a0

See more details on using hashes here.

File details

Details for the file azure_agents_learning_sdk-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for azure_agents_learning_sdk-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2155e741b40ca5102a0e9d55a763b480ae0c88252c1b578bae969129caac31e7
MD5 2d19340334414799c4469692fed4adb3
BLAKE2b-256 433d48303100a8fe945b6d9d354160a99f28e6b3c66f82b142091cc52cbc28ab

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