Skip to main content

agent-learning

Evidence-driven decision SDK for AI agents. Each recurring agent-task decision has one small, interpretable TaskPolicy over explicit executable alternatives.

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 decisions without LLM weight fine-tuning. There are no GPU fine-tune jobs and no opaque update cycles. Four pieces run in the existing Python process:

  1. TaskPolicy owns N discrete actions and one persisted decision authority. low selects from learned softmax evidence; full evaluates a structured DecisionFrame against the same action set.

  2. DecisionResolver applies hard constraints, confidence-weighted Bayesian evidence aggregation, Pareto elimination, robust utility, and information needs. A close result requires an explicit accept/reject tie-break.

  3. Score evaluates each episode on-device for intent resolution, task adherence, and task completion. Azure AI evaluators remain opt-in.

  4. Learner applies REINFORCE-with-baseline to low-authority TaskPolicy logits from observed outcomes and accept/reject feedback. Full-authority episodes are scored and audited but are not treated as softmax samples.

task-policy-decide closes the loop at execution time. It returns learned feedback for low authority or an auditable decision certificate, information needs, and any required tie-break for full authority. Both routes preserve the same policy ID, version lineage, and action taxonomy.

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.8.0.tar.gz (124.8 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.8.0-py3-none-any.whl (119.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agent_learning-0.8.0.tar.gz
  • Upload date:
  • Size: 124.8 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.8.0.tar.gz
Algorithm Hash digest
SHA256 f2875bf2c997be4709f5fe3f32c169bcc5563e4cbe82bb1d253c762fab07f46b
MD5 dbfb5f501a0f02ed2691a0966b18a822
BLAKE2b-256 6fa691736506de2605bb914a20a32606b1f9f33ef22e4f6441b0dd8505ea4a50

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_learning-0.8.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.8.0-py3-none-any.whl.

File metadata

  • Download URL: agent_learning-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 119.5 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.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27b01025917ca3e0aa9059ae82d693db5bd7fdbaf0da465a7e93263d686f79a3
MD5 06e17b182d26a5a59ada0d7245fd31ae
BLAKE2b-256 ad4fe3c67254ead53ecb87e7d5a23faed968c5872ef8c511ccd9d2a7ecc37fd8

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_learning-0.8.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