agentleFS
MicrosoftKnown publishermicrosoft-foundry/foundry-samples/samples/python/hosted-agents/bring-your-own/voice-agent-target-agent/langchain/AGENTS.md

foundry-samples / langchain

AGENTS.md454 starsChanged 3 months agoMITView on GitHub

This is a Microsoft Foundry hosted text agent that implements Voice Live Bridge Protocol 1.0 over invocations_ws. Voice Live owns the audio pipeline; this sample handles only typed text and control events. - Direct code deployment: azure.yaml declares Python 3.13 and main.py as the entry point. - Keep the sample self-contained under this directory. Do not add sibling-path dependencies, private package feeds, local wheels, or generated .vscode files. - azure.yaml — Foundry project, model, hosted-agent metadata, and protocol declaration -…

The file

We split this AGENTS.md into the rules it gives an agent

6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Keep the sample self-contained under this directory.

    line 10
  2. Very specific:

    Do not commit .vscode launch or task files generated by the Foundry Toolkit.

    line 27
  3. Very specific:

    Follow samples/python/hosted-agents/DEPENDENCY_POLICY.md.

    line 31
  4. Very specific:

    Use the standard logging module for server diagnostics.

    line 38
  5. Very specific:

    Keep bridgeProtocolVersion: "1.0", voiceLiveCompatible: "true", and invocations_ws aligned.

    line 50
  6. Distinctive:

    Follow the shared Python Hosted Agent dependency and README policies in the nearest parent instructions.

    line 69

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Coding Agent Instructions — Voice Live Bridge LangChain Python

This is a Microsoft Foundry hosted text agent that implements Voice Live Bridge Protocol 1.0 over invocations_ws. Voice Live owns the audio pipeline; this sample handles only typed text and control events.

Deployment mode

  • Direct code deployment: azure.yaml declares Python 3.13 and main.py as the entry point.
  • Keep the sample self-contained under this directory. Do not add sibling-path dependencies, private package feeds, local wheels, or generated .vscode files.

Key files

  • azure.yaml — Foundry project, model, hosted-agent metadata, and protocol declaration
  • src/voice-live-bridge-langchain-python/main.py — server entry point
  • src/voice-live-bridge-langchain-python/voice_runtime.py — thin Bridge callbacks and command dispatch
  • src/voice-live-bridge-langchain-python/response_coordinator.py — response execution, terminal sequencing, cancellation, and detached-task cleanup
  • src/voice-live-bridge-langchain-python/state.py — bounded connection state and session store
  • src/voice-live-bridge-langchain-python/model_contract.py — model backend protocol shared without circular imports
  • src/voice-live-bridge-langchain-python/langchain_agent.py — LangChain tool loop and Foundry Responses adapter
  • src/voice-live-bridge-langchain-python/requirements.txt — fully pinned runtime dependency graph
  • sample.yaml — repository build-readiness validation

Do not commit .vscode launch or task files generated by the Foundry Toolkit.

Dependency workflow

Follow samples/python/hosted-agents/DEPENDENCY_POLICY.md. The runtime requirements.txt is the portable consumer artifact and must pin the complete direct and transitive graph. Regenerate it whenever a dependency input changes, and run the static and resolver-backed policy checks before completing dependency changes.

Runtime logging

Use the standard logging module for server diagnostics. Reserve print() for local CLI utilities such as the smoke client, where stdout is the intended interface. Never log prompts, responses, credentials, or bearer tokens.

Development workflow

From an initialized agent project, use azd provision, azd ai agent run, and azd deploy for the hosted-agent lifecycle. Do not use azd ai agent invoke for this sample because it does not produce Voice Live Bridge WebSocket events; use scripts/smoke_test.py for the local protocol check.

Protocol constraints

  • Keep bridgeProtocolVersion: "1.0", voiceLiveCompatible: "true", and invocations_ws aligned.
  • The application explicitly sends session.ready or session.rejected and owns response IDs, background tasks, cancellation, and conversation state.
  • Protocol 1.0 supports text input only. Do not add DTMF, image input, history mutation, or hosted-agent handoff under this version.

Microsoft Foundry Skill

For guided deployment and troubleshooting, install the Microsoft Foundry Skill:

npx skills add https://github.com/microsoft/azure-skills --skill microsoft-foundry

References

Follow the shared Python Hosted Agent dependency and README policies in the nearest parent instructions.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.