Perceive Content Stream
POST /api/agents/perceive/content/stream
POST
/api/agents/perceive/content/stream
Streaming content perception — NDJSON events mirroring /webpage/stream.
Same event shape as the webpage variant. No URL validation (content is
supplied inline). The terminal complete event carries a
WebpagePerceptionResponse with url="content://inline".
Request Body required
Section titled “Request Body required ” ContentPerceptionRequest
Request model for analyzing raw text content.
Analyzes raw text content (plain text, HTML, or markdown) for entity extraction, sentiment analysis, and insights without requiring a URL fetch.
Fields:
content: Text content to analyze (required, non-empty)content_type: Type of content being analyzed (text, html, markdown)depth: Analysis depth level (surface, analytical, strategic)
Usage: Used for analyzing content that’s already available without web fetching.
Integration:
- PerceptionRoutes: Request validation for /perception/content endpoint
- Document Analysis: Local content analysis workflows
object
content
required
Content
Text content to analyze
string
contentType
Contenttype
Type of content being analyzed
string
depth
Depth
Analysis depth level
string
Responses
Section titled “ Responses ”Successful Response
Validation Error
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context