Requires
maximem-synap 0.5.1 or newer (Python) and
@maximem/synap-js-sdk 0.5.1 or newer (JS). Earlier versions do not
have this method, and 0.5.0 loses events sent immediately after
listen().Advanced: for real-time integrations. Requires an active
instance.listen stream.record_tool_result() reports what a tool handed back. The result travels in its own field rather than in content: it is not something a person said, and content is the field every reader treats as speech.
Parameters
any
required
JSON-encodable, or a plain string. A string is sent as itself, not as a quoted JSON string.
string
The tool that produced it.
string
The id you passed to
record_tool_call. This is what ties the result to the call that asked for it.string
The conversation this result belongs to.
string
External user identifier.
string
External customer identifier. Required on B2B. Not accepted on B2C.
string
External session identifier. Usually unnecessary.
dict[str, str]
Extra string key-value pairs.
Returns
ReturnsNone.
Example
Raises
error
No stream has been started, or it has been stopped. A stream that is mid-reconnect does not raise.