For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
LogoLogo
ModelsChatRankingsDocs
DocsAPI ReferenceClient SDKsAgent SDKCookbook
DocsAPI ReferenceClient SDKsAgent SDKCookbook
    • Overview
    • Usage for Agents
  • TypeScript SDK
    • Overview
  • Python SDK
    • Overview
      • Analytics
      • APIKeys
      • Byok
      • Chat
        • Rule
      • Credits
      • Datasets
      • Embeddings
      • Endpoints
      • Generations
      • Guardrails
      • OAuth
      • Observability
      • Organization
      • Presets
      • Providers
      • Rerank
      • Beta.Responses
      • Transcriptions
      • Speech
      • VideoGeneration
      • Workspaces
  • Go SDK
  • DevTools
    • Overview
    • Migrating to @openrouter/agent
ModelsChatRankingsDocs
On this page
  • Fields
Python SDKAPI ReferenceComponents

Rule - Python SDK

Rule method reference

The Python SDK and docs are currently in beta. Report issues on GitHub.

Fields

FieldTypeRequiredDescription
fieldcomponents.FieldT✔️N/A
operatorcomponents.Operator✔️N/A
valueOptional[components.ObservabilityFilterRulesConfigValue]➖N/A
Was this page helpful?
Previous

Credits - Python SDK

Credits method reference
Next
Built with