| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| |
| |
| -record(agent, { |
| agent_id :: binary(), |
| objective :: #{} | undefined, |
| state :: created | ready | planning | executing |
| | waiting | completed | failed | terminated, |
| capabilities :: [atom()], |
| action_count = 0 :: non_neg_integer(), |
| started_at_ms :: integer(), |
| updated_at_ms :: integer(), |
| limits :: map(), |
| result :: term() | undefined, |
| failure_reason :: term() | undefined |
| }). |
|
|
| -record(agent_objective, { |
| objective_id :: binary(), |
| agent_id :: binary(), |
| description :: binary(), |
| success_criteria :: binary() | undefined, |
| created_at_ms :: integer() |
| }). |
|
|
| |
| -record(browser_session, { |
| session_id :: binary(), |
| owner_agent_id :: binary() | undefined, |
| profile :: binary(), |
| pid :: pid() | undefined, |
| status :: starting | ready | busy | closing | closed | crashed, |
| tabs :: [binary()], |
| created_at_ms :: integer(), |
| updated_at_ms :: integer() |
| }). |
|
|
| -record(browser_tab, { |
| tab_id :: binary(), |
| session_id :: binary(), |
| url :: binary() | undefined, |
| title :: binary() | undefined, |
| status :: opening | loading | idle | closed, |
| created_at_ms :: integer(), |
| updated_at_ms :: integer() |
| }). |
|
|
| |
| -record(search_job, { |
| job_id :: binary(), |
| owner_agent_id :: binary() | undefined, |
| query :: binary(), |
| stage :: user_query | query_normalization | search_planner |
| | search_provider | result_normalization | url_deduplication |
| | content_retrieval | content_extraction | source_ranking |
| | result_synthesis | frontend_visibility | done | failed, |
| max_iterations :: pos_integer(), |
| iteration :: non_neg_integer(), |
| results :: [binary()], |
| created_at_ms :: integer(), |
| updated_at_ms :: integer() |
| }). |
|
|
| -record(search_result, { |
| result_id :: binary(), |
| job_id :: binary(), |
| url :: binary(), |
| normalized_url:: binary(), |
| title :: binary() | undefined, |
| snippet :: binary() | undefined, |
| rank :: number() | undefined, |
| source_document_id :: binary() | undefined, |
| created_at_ms :: integer() |
| }). |
|
|
| -record(source_document, { |
| document_id :: binary(), |
| url :: binary(), |
| fetched_at_ms :: integer(), |
| content_type :: binary() | undefined, |
| extracted_text :: binary() | undefined, |
| citation_map :: map() |
| }). |
|
|
| |
| -record(message, { |
| message_id :: binary(), |
| sender :: binary(), |
| recipient :: binary(), |
| timestamp :: integer(), |
| conversation_id :: binary(), |
| message_type :: user_to_agent | agent_to_user | agent_to_agent | system, |
| payload :: map(), |
| status :: queued | delivered | read | failed |
| }). |
|
|
| |
| |
| |
| -record(operation, { |
| operation_id :: binary(), |
| request_id :: binary(), |
| kind :: atom(), |
| status :: accepted | in_progress | succeeded | failed, |
| subject :: {atom(), binary()} | undefined, |
| error :: map() | undefined, |
| created_at_ms :: integer(), |
| updated_at_ms :: integer() |
| }). |
|
|