Praison AI

  • Enterprise
  • Agents
  • Bot
  • Use Cases
  • University
  • Docs
DocsFeaturesAgents & ToolsCLI & CodeUI & AppsGateway & BotsDeploy & APIRecipes & ExamplesSDK ReferenceTypeScript / JSRust

SDK Reference

Guide
  • SDK Reference
  • Python API Overview

Guide

praisonaiagents
  • praisonaiagents SDK
  • Protocols
  • Architecture Patterns
  • Task Module
  • Config Module
  • Process Module
  • Memory Module
  • Session
  • MCP Module
  • Guardrails Module
  • Tools Module
  • Hooks Module
  • Planning Module
  • LLM Module
  • Checkpoints Module
  • Background Module
  • Policy Module
  • Thinking Module
  • Compaction Module
  • Eval Module
  • Skills Module
  • Context Module
  • UI Module
  • LSP Module
  • Display Module
  • Outputs Module
  • Telemetry Module
  • FlowDisplay Module
  • Approval Module
  • SDK Extensibility
  • Token Utilities Module
  • Streaming Module

Guide · praisonaiagents

Agent
  • Agent Module
  • handoff
  • ImageAgent Module
  • RouterAgent Module
  • DeepResearchAgent Module
  • QueryRewriterAgent Module
  • PromptExpanderAgent Module
  • ContextAgent Module
Agents
  • Agents Module
  • AutoAgents Module
  • AutoRagAgent
Knowledge
  • Knowledge Module
  • Knowledge Protocols
  • Index Module
  • Query Engine Module
  • Readers Module
  • Rerankers Module
  • Retrieval Module
  • Vector Store Module
Workflows
  • Workflows Module
  • WorkflowManager Module

Guide

Companion Packages
  • praisonai-code
  • praisonai-bot
  • praisonai-sandbox
praisonai
  • praisonai SDK
  • CLI Module
  • Auto Module
  • Deploy Module
  • Persistence Module
  • Train Module
  • Scheduler Module
  • Profiler Module
  • Templates Module
  • ChainlitUI Module
  • AgentsGenerator Module
  • Recipe Registry Module
  • Package Manager Module
  • Adapters Module
  • Knowledge (Wrapper)
  • Readers (Wrapper)
  • Vector Store (Wrapper)
  • Retrieval (Wrapper)
  • Reranker Module
  • Index Types
  • Query Engine
  • Video Module
  • Embedding

Guide · praisonai

Runtime Operations
  • Background Tasks
  • Async Jobs
  • Background Tasks CLI
  • Async Jobs CLI
  • Scheduler CLI

Guide

typescript
  • TypeScript SDK
  • AutoAgents
  • Cache
  • ContextAgent
  • Database Adapters
  • Graph RAG
  • Guardrails
  • TypeScript Handoff
  • ImageAgent
  • Observability
  • Planning
  • PromptExpanderAgent
  • QueryRewriterAgent
  • Reranker
  • DeepResearchAgent
  • RouterAgent
  • Telemetry
  • Vector Stores
  • Voice

Reference · praisonaiagents

Modules
  • Run Lock
  • Version
  • A2A
  • a2ui
  • activation
  • adapters
  • agent
  • agents
  • agui
  • app
  • approval
  • Audio Agent
  • auth
  • Auto RAG Agent
  • autoagents
  • autonomy
  • backends
  • background
  • base
  • bots
  • budget
  • bundles
  • bus
  • capabilities
  • Capability Validator
  • checkpoints
  • chunking
  • CLI Backend
  • Code Agent
  • compaction
  • conditions
  • config
  • context
  • Context Agent
  • Context Builder
  • Context Events
  • DB
  • decisions
  • decorator
  • Deep Research Agent
  • dimensions
  • discovery
  • Doctor Protocol
  • Doctor Registry
  • Doom Loop
  • embed
  • embedding
  • Embedding Agent
  • errors
  • escalation
  • eval
  • evaluator
  • events
  • factories
  • failover
  • fast
  • Feature Configs
  • Flow Display
  • frameworks
  • gateway
  • goal
  • guard
  • guardrails
  • handoff
  • Health Check
  • Health Registry
  • heartbeat
  • hooks
  • Image Agent
  • indexing
  • journal
  • kanban
  • knowledge
  • Last Run
  • learn
  • LLM
  • loader
  • local
  • lsp
  • main
  • managed
  • manager
  • MCP
  • memory
  • messaging
  • middleware
  • Middleware Registry
  • Model Harness
  • models
  • obs
  • observability
  • Ocr Agent
  • output
  • Param Resolver
  • Parse Utils
  • parser
  • paths
  • permissions
  • pipeline
  • planning
  • plugins
  • policy
  • portable
  • presets
  • process
  • profiles
  • prompt
  • Prompt Expander Agent
  • protocol
  • protocols
  • push
  • Query Rewriter Agent
  • RAG
  • Realtime Agent
  • redact
  • registry
  • remote
  • resolve
  • result
  • Retrieval Config
  • Retry Utils
  • rooms
  • Run Outcome
  • runner
  • runs
  • runtime
  • sandbox
  • scheduler
  • scripted
  • secrets
  • server
  • session
  • Shell Render
  • skills
  • snapshot
  • storage
  • streaming
  • substitution
  • task
  • telemetry
  • thinking
  • tools
  • trace
  • Turn Context
  • types
  • ui
  • validator
  • verification
  • Video Agent
  • Vision Agent
  • workflows
  • workspace
Classes
ABCDEFGHIJKLMNOPQRSTUVW
  • Sandbox Config
  • Sandbox Protocol
  • Sandbox Result
  • Sandbox Status
  • Scale To Zero Policy
  • Schedule Add Input
  • Schedule Remove Input
  • Schedule Target Error
  • Schedule Trigger Input
  • Scope Required Error
  • Script Exhausted
  • Scripted Model
  • Scripted Model Error
  • Scripted Reply
  • Scripted Tool Call
  • Secret Ref
  • Secret Resolution
  • Secret Resolver
  • Security Policy
  • Send Decision
  • Send Error Kind
  • Send Policy
  • Send Policy Protocol
  • Send Result
  • Session
  • Session Binding Protocol
  • Session Config
  • Session Context
  • Session Correlation
  • Session Deduplication Cache
  • Session End Input
  • Session Error Event
  • Session Idle Event
  • Session Observer Protocol
  • Session Persist Failed Input
  • Session Running Event
  • Session Sharing Role
  • Session Start Input
  • Session Visibility
  • Shutdown Forensics Protocol
  • Skill Activated Event
  • Skill Activation Protocol
  • Skill Automation
  • Skill Discovered Event
  • Skill Invocation Policy Protocol
  • Skill Loader
  • Skill Manager
  • Skill Metadata
  • Skill Mutator Protocol
  • Skill Prompt Budget
  • Skill Properties
  • Skill Requirements
  • Skill Review Protocol
  • Skill Source Protocol
  • Skill State
  • Skills Catalog Protocol
  • Skills Config
  • Sliding Window Rate Limit Policy
  • Snapshot Hook Data
  • Span
  • Spend Budget Policy Protocol
  • Stage Context
  • Steering Message
  • Steering Priority
  • Stop Reason
  • Stop Result
  • Stop Scope
  • Subagent Stop Input
  • Supports Gateway Runtime
  • Supports Hot Reload
  • Supports Presentation
Functions
ABCDEFGHIJKLMNOPQRSTUVW

Reference · praisonai

Modules
  • acp
  • adapters
  • agent
  • Agent Scheduler
  • Agents Generator
  • app
  • Async Agent Scheduler
  • auto
  • bots
  • browser
  • capabilities
  • Chainlit Ui
  • chat
  • claw
  • CLI
  • CLI Backends
  • code
  • config
  • context
  • daemon
  • DB
  • deploy
  • endpoints
  • flow
  • Framework Adapters
  • gateway
  • inc
  • integration
  • integrations
  • jobs
  • kanban
  • LLM
  • MCP Server
  • n8n
  • observability
  • persistence
  • profiler
  • push
  • recipe
  • replay
  • runtime
  • sandbox
  • scheduler
  • security
  • standardise
  • storage
  • Suite Runner
  • templates
  • tools
  • train
  • Train Vision
  • Ui Agents
  • Ui Bot
  • Ui Chat
  • Ui Dashboard
  • Ui Realtime
  • Ui Replay
  • Upload Vision
  • version
Classes
  • API Call Record
  • Agent Executor Interface
  • Agent Scheduler
  • Agents Generator
  • Auto Generator
  • Base Auto Generator
  • Chat Config
  • Deployer Interface
  • Deployment Scheduler
  • Flow Record
  • Import Profiler
  • Import Record
  • Job Workflow Auto Generator
  • Memory Record
  • Merge Conflict Error
  • Pattern Recommendation
  • Praison Agent Executor
  • Profiler
  • Profiler Compat
  • Role Details
  • Schedule Parser
  • Serve Handler Adapter
  • Single Agent Structure
  • Streaming Record
  • Streaming Tracker
  • Task Details
  • Team Structure
  • Timing Record
  • Tool Timeout Error
  • Train Model
  • Train Vision Model
  • Upload Vision Model
  • Validation Gate
  • Workflow Agent Details
  • Workflow Auto Generator
  • Workflow Parallel Details
  • Workflow Route Details
  • Workflow Step Details
  • Workflow Structure
Functions
ABCDEFGHILMOPRSTUV

Reference · typescript

Modules
  • agent
  • AI
  • approval
  • auto
  • bots
  • cache
  • CLI
  • cli-backend
  • compute
  • conditions
  • config
  • context
  • DB
  • decisions
  • display
  • embeddings
  • escalation
  • eval
  • events
  • frameworks
  • gateway
  • goal
  • guardrails
  • hooks
  • integrations
  • knowledge
  • LLM
  • managed
  • MCP
  • memory
  • model-harness
  • observability
  • OS
  • parity
  • planning
  • plugins
  • process
  • protocols
  • RAG
  • runtime
  • session
  • skills
  • task
  • telemetry
  • tools
  • trace
  • workflows
Classes
ABCDEFGHIKLMOPRSTVW
Functions
  • accuracy Eval
  • aembed
  • aembedding
  • aembeddings
  • and Conditions
  • async Display Callbacks
  • Async Display Callbacks
  • classify LLM Error
  • Clean Triple Backticks
  • cleanup Telemetry
  • cleanup Telemetry Resources
  • clear Display Callbacks
  • clear Error Logs
  • cosine Similarity
  • create Agent Telemetry
  • create Approval Callback
  • create Auto Agents
  • create Condition
  • create Context Agent
  • create Context Event
  • create DB Adapter
  • create Event Bus
  • create File Cache
  • create Guardrail Validation Result
  • create MCP Client
  • create Memory Cache
  • create Plan
  • create Plan Storage
  • create Planning Agent
  • create Pub Sub
  • create RAG
  • create Skill Loader
  • create Skill Manager
  • create Skill Properties
  • create Task Agent
  • create Task Output
  • create Todo List
  • DB
  • detect URL Scheme
  • Detect URL Scheme
  • disable
  • disable Performance Mode
  • disable Telemetry
  • discover And Load Plugins
  • discover Plugins
  • Discover And Load Plugins
  • Discover Plugins
  • display Error
  • display Generating
  • display Instruction
  • display Interaction
  • display Self Reflection
  • display Tool Call
  • Display Error
  • Display Generating
  • Display Instruction
  • Display Interaction
  • Display Self Reflection
  • Display Tool Call
  • embed
  • embedding
  • embeddings
  • enable
  • enable Performance Mode
  • enable Telemetry
  • ensure Plugin Dir
  • Ensure Plugin Dir
  • error Logs
  • Error Logs
  • euclidean Distance
  • evaluate Condition
  • Evaluate Condition
  • get Default DB Adapter
  • get Default Plugin Dirs
  • get Dimensions
  • get MCP Tools
  • get Minimal Telemetry
  • get Observability Adapter
  • get Plugin Manager
  • get Plugin Template
  • get Session Manager
  • get Telemetry
  • Get Config
  • Get Config Path
  • Get Default
  • Get Default Plugin Dirs
  • Get Defaults Config
  • Get Dimensions
  • Get Plugin Manager
  • Get Plugin Template
  • Get Plugins Config
  • guardrail
  • guardrail Result From Tuple
  • is Anthropic Model
  • is Enabled
  • Is Path Like
  • Is Policy String
  • list Compute Providers
  • list Plugins
  • load Plugin
  • Load Plugin
  • log Error
  • normalize Embedding
  • not Condition
  • or Conditions
  • parse Plugin Header
  • parse Plugin Header From File
  • parse Skill File
  • Parse Plugin Header
  • Parse Plugin Header From File
  • Parse Policy String
  • performance Eval
  • prompt With Handoff Instructions
  • register Compute Provider
  • register Display Callback
  • Register Display Callback
  • reliability Eval
  • reset Observability Adapter
  • resolve Compute Provider
  • resolve Guardrail Policies
  • Resolve Autonomy
  • Resolve Caching
  • Resolve Context
  • Resolve Execution
  • Resolve Guardrail Policies
  • Resolve Guardrails
  • Resolve Hooks
  • Resolve Knowledge
  • Resolve Memory
  • Resolve Output
  • Resolve Planning
  • Resolve Reflection
  • Resolve Routing
  • Resolve Skills
  • Resolve Web
  • set Default DB Adapter
  • set Embedding Config
  • set Observability Adapter
  • set Task Mode
  • Suggest Similar
  • sync Display Callbacks
  • Sync Display Callbacks
  • trace
  • trace Context
  • Trace Context
  • track Workflow
  • Track Workflow
  • Validate Config
  • when

Reference · rust

Modules
  • agent
  • agents
  • bots
  • builder
  • bus
  • chat
  • commands
  • conditions
  • config
  • Config Loader
  • context
  • display
  • Display Types
  • embedding
  • error
  • eval
  • extras
  • failover
  • gateway
  • guardrails
  • handoff
  • hooks
  • knowledge
  • LLM
  • main
  • MCP
  • memory
  • Param Resolver
  • parity
  • Parse Utils
  • planning
  • plugins
  • policy
  • praisonai
  • Praisonai Derive
  • presets
  • prompt
  • protocols
  • RAG
  • run
  • sandbox
  • session
  • skills
  • specialized
  • Specialized Agents
  • streaming
  • task
  • telemetry
  • Telemetry Funcs
  • thinking
  • tools
  • trace
  • ui
  • Workflow Aliases
  • workflows
Classes
ABCDEFGHIJKLMOPQRSTUVW
Functions
ABCDEFGHIJKLMNOPQRSTUVW
Docs/SDK Reference/Classes/Stop Reason • AI Agent SDK
PreviousNext

Stop Reason • AI Agent SDK

StopReason: Why a session went idle.

StopReason

Defined in the events module.

AI Agent

Why a session went idle.

Source

View on GitHub

praisonaiagents/managed/events.py at line 32

PreviousNext
  • Platform
  • Use Cases
  • Agents
  • Bot
  • Enterprise
  • Partners
  • Community
  • FAQ
  • About
  • University
  • Documentation
  • GitHub

© Praison AI Limited.

Search in