Skip to main content

agent-learning

Native reinforcement learning SDK for AI agents. An in-process Learner optimizes a small, interpretable TaskPolicy over discrete agent choices (understand intent and complete task by choosing the right outcome).

TaskPolicies model reusable decisions among executable alternatives such as models, skills, tools, workflows, or workloads. Factual questions, ordinary chat, reporting, and learning automation are not policy tasks.

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. TaskPolicy is a softmax distribution over N discrete actions (e.g., "take action A", "take action B", "take action C"). It lives in Python and updates in milliseconds.

  2. Score evaluates each episode on-device with three stdlib scorers for intent resolution, task adherence, and task completion. Their scores are combined into a single scalar reward with no scoring endpoint or environment variables required. Azure AI evaluators remain available as an opt-in.

  3. Learner applies REINFORCE-with-baseline to update TaskPolicy logits directly from logged episodes. Updates are tiny gradient steps that run on local compute and persist through a pluggable store — in-memory or local files by default, with Azure Cosmos DB optional.

task-policy-decide closes the loop at execution time by returning the selected action plus historical correctness, reward, result summaries, and per-metric quality feedback for the agent to use on its next delegated decision.

It also returns a complexity-proportional autonomy assessment. A persisted profile covers intent ambiguity, context variability, outcome observability, decision impact, reversibility, and mandatory approval; action-space size is derived. The resulting low, standard, high, or critical tier scales required outcomes, Wilson confidence, reward, probability, margin, stable snapshots, and drift-audit rate. Autonomous executions continue learning from observable outcomes, while tier-scaled samples request user feedback to detect drift. An explicit accepted-feedback episode is a separate durable authorization path: it pins that action for the task policy and suppresses future feedback prompts until the user explicitly rejects it.

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

Download files

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

Source Distribution

agent_learning-0.7.0.tar.gz (111.4 kB view details)

Uploaded Source

Built Distribution

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

agent_learning-0.7.0-py3-none-any.whl (110.1 kB view details)

Uploaded Python 3

File details

Details for the file agent_learning-0.7.0.tar.gz.

File metadata

  • Download URL: agent_learning-0.7.0.tar.gz
  • Upload date:
  • Size: 111.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for agent_learning-0.7.0.tar.gz
Algorithm Hash digest
SHA256 54b9ccc84ae18cf60463e7bde3254ddd9c006df0addcabc8f3f8dc9217cc940e
MD5 adae883c4ab80111e2e9ad5495a89ca7
BLAKE2b-256 e54a54c0415c76d14283172df4fa61119bb5190cf466ba8ff4b1090e9b170a28

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_learning-0.7.0.tar.gz:

Publisher: publish.yaml on microsoft/agent-learning

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

File details

Details for the file agent_learning-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: agent_learning-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 110.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for agent_learning-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 21b9454eaa1a44d94ab1add6647e3ce549773a2c4421e08fe06d0fa7c026633d
MD5 2b3a650a8bb7e2d1ae789bcad3d24b82
BLAKE2b-256 45e153e80dac3cb0fd4e6b80c4ebe5423f68119493c39966a73dc4ede182abc4

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_learning-0.7.0-py3-none-any.whl:

Publisher: publish.yaml on microsoft/agent-learning

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 Sentry Error logging StatusPage Status page