roboto.ai.core.context#
Module Contents#
- class roboto.ai.core.context.AnalysisScope(/, **data)#
Bases:
pydantic.BaseModelThe slice of data an agent is expected to analyze.
An
AnalysisScopeis delivered to everyAgentToolinvocation on the server side. Individual tools opt in to honoring the scope as they are adopted; this SDK type carries the configuration, it does not itself enforce anything. Fields set toNoneare unconstrained on that dimension; anAnalysisScopewith every fieldNoneis equivalent to no scope at all.- Parameters:
data (Any)
- end_time: int | None = None#
Upper bound (inclusive) of the analysis window, expressed as nanoseconds since the Unix epoch.
- start_time: int | None = None#
Lower bound (inclusive) of the analysis window, expressed as nanoseconds since the Unix epoch.
- class roboto.ai.core.context.RobotoLLMContext(/, **data)#
Bases:
pydantic.BaseModelContextual information about what a user is trying to do. May be passed along to Roboto LLM based code paths in order to enrich results
- Parameters:
data (Any)
- dataset_ids: list[str] = None#
IDs of datasets that are relevant to the user’s query.
- file_ids: list[str] = None#
IDs of files that are relevant to the user’s query.
- misc_context: dict[str, Any] | None = None#
Miscellaneous context that is relevant to the user’s query.
- visualizer_state: dict[str, Any] | None = None#
State of the visualizer, if a request is being made from the visualizer. This is expected to be a relatively opaque JSON blob