weave-python 0.55.0__py3-none-any.whl → 0.56.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- weave/weaveapi/agent/v1/agent_pb2.py +33 -33
- weave/weaveapi/agent/v1/agent_pb2.pyi +52 -51
- weave/weaveapi/agent/v1/service_pb2.py +98 -96
- weave/weaveapi/agent/v1/service_pb2.pyi +104 -88
- weave/weaveapi/agent/v1/service_pb2_grpc.py +52 -52
- weave/weaveapi/agent/v1/service_pb2_grpc.pyi +38 -36
- weave/weaveapi/chat/v1/chat_pb2.py +26 -26
- weave/weaveapi/chat/v1/chat_pb2.pyi +21 -21
- weave/weaveapi/workflow/v1/service_pb2.py +98 -98
- weave/weaveapi/workflow/v1/service_pb2.pyi +116 -104
- weave/weaveapi/workflow/v1/service_pb2_grpc.py +52 -52
- weave/weaveapi/workflow/v1/service_pb2_grpc.pyi +40 -40
- weave/weaveapi/workflow/v1/workflow_pb2.py +53 -63
- weave/weaveapi/workflow/v1/workflow_pb2.pyi +67 -67
- weave/weavesql/weavedb/agent.py +733 -733
- weave/weavesql/weavedb/models.py +100 -100
- weave/weavesql/weavedb/workflow.py +828 -828
- {weave_python-0.55.0.dist-info → weave_python-0.56.0.dist-info}/METADATA +1 -1
- {weave_python-0.55.0.dist-info → weave_python-0.56.0.dist-info}/RECORD +21 -21
- {weave_python-0.55.0.dist-info → weave_python-0.56.0.dist-info}/WHEEL +0 -0
- {weave_python-0.55.0.dist-info → weave_python-0.56.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -20,7 +20,7 @@ _sym_db = _symbol_database.Default()
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
23
|
-
b'\n\x1dweaveapi/agent/v1/agent.proto\x12\x11weaveapi.agent.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\
|
|
23
|
+
b'\n\x1dweaveapi/agent/v1/agent.proto\x12\x11weaveapi.agent.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xfb\x03\n\x0f\x41gentDefinition\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\'\n\x0forganization_id\x18\x02 \x01(\tR\x0eorganizationId\x12\x12\n\x04slug\x18\x03 \x01(\tR\x04slug\x12\x12\n\x04name\x18\x04 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x05 \x01(\tR\x0b\x64\x65scription\x12@\n\x06status\x18\x06 \x01(\x0e\x32(.weaveapi.agent.v1.AgentDefinitionStatusR\x06status\x12+\n\x12\x63reated_by_user_id\x18\x07 \x01(\tR\x0f\x63reatedByUserId\x12%\n\x0e\x64raft_revision\x18\x08 \x01(\x05R\rdraftRevision\x12*\n\x11latest_version_id\x18\t \x01(\tR\x0flatestVersionId\x12%\n\x0elatest_version\x18\n \x01(\x05R\rlatestVersion\x12=\n\ncreated_at\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02(\x01R\tcreatedAt\x12=\n\nupdated_at\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02(\x01R\tupdatedAt"\x87\x06\n\nAgentDraft\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12#\n\rdefinition_id\x18\x02 \x01(\tR\x0c\x64\x65\x66initionId\x12\'\n\x0forganization_id\x18\x03 \x01(\tR\x0eorganizationId\x12&\n\x0f\x62\x61se_version_id\x18\x04 \x01(\tR\rbaseVersionId\x12\x1a\n\x08revision\x18\x05 \x01(\x05R\x08revision\x12\x12\n\x04name\x18\x06 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x07 \x01(\tR\x0b\x64\x65scription\x12"\n\x0cinstructions\x18\x08 \x01(\tR\x0cinstructions\x12\x19\n\x08model_id\x18\t \x01(\tR\x07modelId\x12:\n\x19provider_configuration_id\x18\n \x01(\tR\x17providerConfigurationId\x12@\n\x05tools\x18\x0b \x03(\x0b\x32&.weaveapi.agent.v1.AgentToolDescriptorB\x02(\x01R\x05tools\x12>\n\x0cinput_schema\x18\x0c \x01(\x0b\x32\x17.google.protobuf.StructB\x02(\x01R\x0binputSchema\x12@\n\routput_schema\x18\r \x01(\x0b\x32\x17.google.protobuf.StructB\x02(\x01R\x0coutputSchema\x12\x37\n\x08metadata\x18\x0e \x01(\x0b\x32\x17.google.protobuf.StructB\x02(\x01R\x08metadata\x12+\n\x12updated_by_user_id\x18\x0f \x01(\tR\x0fupdatedByUserId\x12=\n\ncreated_at\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02(\x01R\tcreatedAt\x12=\n\nupdated_at\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02(\x01R\tupdatedAt"\xaa\x02\n\x0f\x41gentDraftPatch\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12#\n\rdefinition_id\x18\x02 \x01(\tR\x0c\x64\x65\x66initionId\x12\'\n\x0forganization_id\x18\x03 \x01(\tR\x0eorganizationId\x12\x1a\n\x08revision\x18\x04 \x01(\x05R\x08revision\x12\x31\n\x05patch\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x02(\x01R\x05patch\x12+\n\x12\x63reated_by_user_id\x18\x06 \x01(\tR\x0f\x63reatedByUserId\x12=\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02(\x01R\tcreatedAt"\xdc\x05\n\x0c\x41gentVersion\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12#\n\rdefinition_id\x18\x02 \x01(\tR\x0c\x64\x65\x66initionId\x12\'\n\x0forganization_id\x18\x03 \x01(\tR\x0eorganizationId\x12\x18\n\x07version\x18\x04 \x01(\x05R\x07version\x12\x32\n\x15source_draft_revision\x18\x05 \x01(\x05R\x13sourceDraftRevision\x12\x12\n\x04name\x18\x06 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x07 \x01(\tR\x0b\x64\x65scription\x12"\n\x0cinstructions\x18\x08 \x01(\tR\x0cinstructions\x12\x19\n\x08model_id\x18\t \x01(\tR\x07modelId\x12:\n\x19provider_configuration_id\x18\n \x01(\tR\x17providerConfigurationId\x12@\n\x05tools\x18\x0b \x03(\x0b\x32&.weaveapi.agent.v1.AgentToolDescriptorB\x02(\x01R\x05tools\x12>\n\x0cinput_schema\x18\x0c \x01(\x0b\x32\x17.google.protobuf.StructB\x02(\x01R\x0binputSchema\x12@\n\routput_schema\x18\r \x01(\x0b\x32\x17.google.protobuf.StructB\x02(\x01R\x0coutputSchema\x12\x37\n\x08metadata\x18\x0e \x01(\x0b\x32\x17.google.protobuf.StructB\x02(\x01R\x08metadata\x12/\n\x14published_by_user_id\x18\x0f \x01(\tR\x11publishedByUserId\x12\x41\n\x0cpublished_at\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02(\x01R\x0bpublishedAt"\xb4\x03\n\x13\x41gentToolDescriptor\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12!\n\x0c\x64isplay_name\x18\x02 \x01(\tR\x0b\x64isplayName\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12>\n\x04kind\x18\x04 \x01(\x0e\x32*.weaveapi.agent.v1.AgentToolDescriptorKindR\x04kind\x12M\n\rapproval_mode\x18\x05 \x01(\x0e\x32(.weaveapi.agent.v1.AgentToolApprovalModeR\x0c\x61pprovalMode\x12>\n\x0cinput_schema\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructB\x02(\x01R\x0binputSchema\x12@\n\routput_schema\x18\x07 \x01(\x0b\x32\x17.google.protobuf.StructB\x02(\x01R\x0coutputSchema\x12\x33\n\x06\x63onfig\x18\x08 \x01(\x0b\x32\x17.google.protobuf.StructB\x02(\x01R\x06\x63onfig"\x8e\x02\n\x10\x41gentPublishPlan\x12#\n\rdefinition_id\x18\x01 \x01(\tR\x0c\x64\x65\x66initionId\x12%\n\x0e\x64raft_revision\x18\x02 \x01(\x05R\rdraftRevision\x12 \n\x0bpublishable\x18\x03 \x01(\x08R\x0bpublishable\x12\x44\n\x06issues\x18\x04 \x03(\x0b\x32(.weaveapi.agent.v1.AgentPublishPlanIssueB\x02(\x01R\x06issues\x12\x46\n\x10\x63ompiled_preview\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x02(\x01R\x0f\x63ompiledPreview"Y\n\x15\x41gentPublishPlanIssue\x12\x12\n\x04\x63ode\x18\x01 \x01(\tR\x04\x63ode\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12\x12\n\x04path\x18\x03 \x01(\tR\x04path"\xfa\x05\n\x08\x41gentRun\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\'\n\x0forganization_id\x18\x02 \x01(\tR\x0eorganizationId\x12.\n\x13\x61gent_definition_id\x18\x03 \x01(\tR\x11\x61gentDefinitionId\x12(\n\x10\x61gent_version_id\x18\x04 \x01(\tR\x0e\x61gentVersionId\x12\x39\n\x06status\x18\x05 \x01(\x0e\x32!.weaveapi.agent.v1.AgentRunStatusR\x06status\x12+\n\x12\x63reated_by_user_id\x18\x06 \x01(\tR\x0f\x63reatedByUserId\x12&\n\x0f\x63hat_session_id\x18\x07 \x01(\tR\rchatSessionId\x12&\n\x0fworkflow_run_id\x18\x08 \x01(\tR\rworkflowRunId\x12/\n\x14workflow_step_run_id\x18\t \x01(\tR\x11workflowStepRunId\x12\x31\n\x05input\x18\n \x01(\x0b\x32\x17.google.protobuf.StructB\x02(\x01R\x05input\x12\x33\n\x06output\x18\x0b \x01(\x0b\x32\x17.google.protobuf.StructB\x02(\x01R\x06output\x12\x1d\n\nerror_code\x18\x0c \x01(\tR\terrorCode\x12,\n\x12safe_error_message\x18\r \x01(\tR\x10safeErrorMessage\x12=\n\ncreated_at\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02(\x01R\tcreatedAt\x12=\n\nstarted_at\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02(\x01R\tstartedAt\x12?\n\x0b\x66inished_at\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02(\x01R\nfinishedAt"\xd0\x02\n\rAgentRunEvent\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\'\n\x0forganization_id\x18\x02 \x01(\tR\x0eorganizationId\x12 \n\x0c\x61gent_run_id\x18\x03 \x01(\tR\nagentRunId\x12\x1a\n\x08sequence\x18\x04 \x01(\x04R\x08sequence\x12\x38\n\x04kind\x18\x05 \x01(\x0e\x32$.weaveapi.agent.v1.AgentRunEventKindR\x04kind\x12\x18\n\x07message\x18\x06 \x01(\tR\x07message\x12\x35\n\x07payload\x18\x07 \x01(\x0b\x32\x17.google.protobuf.StructB\x02(\x01R\x07payload\x12=\n\ncreated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02(\x01R\tcreatedAt*\x8a\x01\n\x15\x41gentDefinitionStatus\x12\'\n#AGENT_DEFINITION_STATUS_UNSPECIFIED\x10\x00\x12"\n\x1e\x41GENT_DEFINITION_STATUS_ACTIVE\x10\x01\x12$\n AGENT_DEFINITION_STATUS_ARCHIVED\x10\x02*\x8f\x02\n\x17\x41gentToolDescriptorKind\x12*\n&AGENT_TOOL_DESCRIPTOR_KIND_UNSPECIFIED\x10\x00\x12,\n(AGENT_TOOL_DESCRIPTOR_KIND_WEAVE_SERVICE\x10\x01\x12$\n AGENT_TOOL_DESCRIPTOR_KIND_AGENT\x10\x02\x12\'\n#AGENT_TOOL_DESCRIPTOR_KIND_WORKFLOW\x10\x03\x12\'\n#AGENT_TOOL_DESCRIPTOR_KIND_EXTERNAL\x10\x04\x12"\n\x1e\x41GENT_TOOL_DESCRIPTOR_KIND_MCP\x10\x05*\xb1\x01\n\x15\x41gentToolApprovalMode\x12(\n$AGENT_TOOL_APPROVAL_MODE_UNSPECIFIED\x10\x00\x12"\n\x1e\x41GENT_TOOL_APPROVAL_MODE_NEVER\x10\x01\x12%\n!AGENT_TOOL_APPROVAL_MODE_MUTATION\x10\x02\x12#\n\x1f\x41GENT_TOOL_APPROVAL_MODE_ALWAYS\x10\x03*\xe8\x01\n\x0e\x41gentRunStatus\x12 \n\x1c\x41GENT_RUN_STATUS_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x41GENT_RUN_STATUS_PENDING\x10\x01\x12\x1c\n\x18\x41GENT_RUN_STATUS_RUNNING\x10\x02\x12\x1c\n\x18\x41GENT_RUN_STATUS_WAITING\x10\x03\x12\x1e\n\x1a\x41GENT_RUN_STATUS_COMPLETED\x10\x04\x12\x1b\n\x17\x41GENT_RUN_STATUS_FAILED\x10\x05\x12\x1d\n\x19\x41GENT_RUN_STATUS_CANCELED\x10\x06*\xeb\x03\n\x11\x41gentRunEventKind\x12$\n AGENT_RUN_EVENT_KIND_UNSPECIFIED\x10\x00\x12 \n\x1c\x41GENT_RUN_EVENT_KIND_STARTED\x10\x01\x12(\n$AGENT_RUN_EVENT_KIND_MODEL_REQUESTED\x10\x02\x12(\n$AGENT_RUN_EVENT_KIND_MODEL_RESPONDED\x10\x03\x12+\n\'AGENT_RUN_EVENT_KIND_TOOL_CALL_PROPOSED\x10\x04\x12*\n&AGENT_RUN_EVENT_KIND_TOOL_CALL_STARTED\x10\x05\x12,\n(AGENT_RUN_EVENT_KIND_TOOL_CALL_COMPLETED\x10\x06\x12)\n%AGENT_RUN_EVENT_KIND_TOOL_CALL_FAILED\x10\x07\x12 \n\x1c\x41GENT_RUN_EVENT_KIND_WAITING\x10\x08\x12"\n\x1e\x41GENT_RUN_EVENT_KIND_COMPLETED\x10\t\x12\x1f\n\x1b\x41GENT_RUN_EVENT_KIND_FAILED\x10\n\x12!\n\x1d\x41GENT_RUN_EVENT_KIND_CANCELED\x10\x0b\x42\xc1\x01\n\x15\x63om.weaveapi.agent.v1B\nAgentProtoP\x01Z6github.com/weave-labs/weave-go/weaveapi/agent/v1;agent\xa2\x02\x03WAX\xaa\x02\x11Weaveapi.Agent.V1\xca\x02\x11Weaveapi\\Agent\\V1\xe2\x02\x1dWeaveapi\\Agent\\V1\\GPBMetadata\xea\x02\x13Weaveapi::Agent::V1b\x08\x65\x64itionsp\xe8\x07'
|
|
24
24
|
)
|
|
25
25
|
|
|
26
26
|
_globals = globals()
|
|
@@ -33,12 +33,12 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
33
33
|
_globals[
|
|
34
34
|
"DESCRIPTOR"
|
|
35
35
|
]._serialized_options = b"\n\025com.weaveapi.agent.v1B\nAgentProtoP\001Z6github.com/weave-labs/weave-go/weaveapi/agent/v1;agent\242\002\003WAX\252\002\021Weaveapi.Agent.V1\312\002\021Weaveapi\\Agent\\V1\342\002\035Weaveapi\\Agent\\V1\\GPBMetadata\352\002\023Weaveapi::Agent::V1"
|
|
36
|
-
_globals["
|
|
37
|
-
_globals["
|
|
36
|
+
_globals["_AGENTDEFINITION"].fields_by_name["created_at"]._loaded_options = None
|
|
37
|
+
_globals["_AGENTDEFINITION"].fields_by_name[
|
|
38
38
|
"created_at"
|
|
39
39
|
]._serialized_options = b"(\001"
|
|
40
|
-
_globals["
|
|
41
|
-
_globals["
|
|
40
|
+
_globals["_AGENTDEFINITION"].fields_by_name["updated_at"]._loaded_options = None
|
|
41
|
+
_globals["_AGENTDEFINITION"].fields_by_name[
|
|
42
42
|
"updated_at"
|
|
43
43
|
]._serialized_options = b"(\001"
|
|
44
44
|
_globals["_AGENTDRAFT"].fields_by_name["tools"]._loaded_options = None
|
|
@@ -121,32 +121,32 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
121
121
|
_globals["_AGENTRUNEVENT"].fields_by_name[
|
|
122
122
|
"created_at"
|
|
123
123
|
]._serialized_options = b"(\001"
|
|
124
|
-
_globals["
|
|
125
|
-
_globals["
|
|
126
|
-
_globals["_AGENTTOOLDESCRIPTORKIND"]._serialized_start =
|
|
127
|
-
_globals["_AGENTTOOLDESCRIPTORKIND"]._serialized_end =
|
|
128
|
-
_globals["_AGENTTOOLAPPROVALMODE"]._serialized_start =
|
|
129
|
-
_globals["_AGENTTOOLAPPROVALMODE"]._serialized_end =
|
|
130
|
-
_globals["_AGENTRUNSTATUS"]._serialized_start =
|
|
131
|
-
_globals["_AGENTRUNSTATUS"]._serialized_end =
|
|
132
|
-
_globals["_AGENTRUNEVENTKIND"]._serialized_start =
|
|
133
|
-
_globals["_AGENTRUNEVENTKIND"]._serialized_end =
|
|
134
|
-
_globals["
|
|
135
|
-
_globals["
|
|
136
|
-
_globals["_AGENTDRAFT"]._serialized_start =
|
|
137
|
-
_globals["_AGENTDRAFT"]._serialized_end =
|
|
138
|
-
_globals["_AGENTDRAFTPATCH"]._serialized_start =
|
|
139
|
-
_globals["_AGENTDRAFTPATCH"]._serialized_end =
|
|
140
|
-
_globals["_AGENTVERSION"]._serialized_start =
|
|
141
|
-
_globals["_AGENTVERSION"]._serialized_end =
|
|
142
|
-
_globals["_AGENTTOOLDESCRIPTOR"]._serialized_start =
|
|
143
|
-
_globals["_AGENTTOOLDESCRIPTOR"]._serialized_end =
|
|
144
|
-
_globals["_AGENTPUBLISHPLAN"]._serialized_start =
|
|
145
|
-
_globals["_AGENTPUBLISHPLAN"]._serialized_end =
|
|
146
|
-
_globals["_AGENTPUBLISHPLANISSUE"]._serialized_start =
|
|
147
|
-
_globals["_AGENTPUBLISHPLANISSUE"]._serialized_end =
|
|
148
|
-
_globals["_AGENTRUN"]._serialized_start =
|
|
149
|
-
_globals["_AGENTRUN"]._serialized_end =
|
|
150
|
-
_globals["_AGENTRUNEVENT"]._serialized_start =
|
|
151
|
-
_globals["_AGENTRUNEVENT"]._serialized_end =
|
|
124
|
+
_globals["_AGENTDEFINITIONSTATUS"]._serialized_start = 4347
|
|
125
|
+
_globals["_AGENTDEFINITIONSTATUS"]._serialized_end = 4485
|
|
126
|
+
_globals["_AGENTTOOLDESCRIPTORKIND"]._serialized_start = 4488
|
|
127
|
+
_globals["_AGENTTOOLDESCRIPTORKIND"]._serialized_end = 4759
|
|
128
|
+
_globals["_AGENTTOOLAPPROVALMODE"]._serialized_start = 4762
|
|
129
|
+
_globals["_AGENTTOOLAPPROVALMODE"]._serialized_end = 4939
|
|
130
|
+
_globals["_AGENTRUNSTATUS"]._serialized_start = 4942
|
|
131
|
+
_globals["_AGENTRUNSTATUS"]._serialized_end = 5174
|
|
132
|
+
_globals["_AGENTRUNEVENTKIND"]._serialized_start = 5177
|
|
133
|
+
_globals["_AGENTRUNEVENTKIND"]._serialized_end = 5668
|
|
134
|
+
_globals["_AGENTDEFINITION"]._serialized_start = 116
|
|
135
|
+
_globals["_AGENTDEFINITION"]._serialized_end = 623
|
|
136
|
+
_globals["_AGENTDRAFT"]._serialized_start = 626
|
|
137
|
+
_globals["_AGENTDRAFT"]._serialized_end = 1401
|
|
138
|
+
_globals["_AGENTDRAFTPATCH"]._serialized_start = 1404
|
|
139
|
+
_globals["_AGENTDRAFTPATCH"]._serialized_end = 1702
|
|
140
|
+
_globals["_AGENTVERSION"]._serialized_start = 1705
|
|
141
|
+
_globals["_AGENTVERSION"]._serialized_end = 2437
|
|
142
|
+
_globals["_AGENTTOOLDESCRIPTOR"]._serialized_start = 2440
|
|
143
|
+
_globals["_AGENTTOOLDESCRIPTOR"]._serialized_end = 2876
|
|
144
|
+
_globals["_AGENTPUBLISHPLAN"]._serialized_start = 2879
|
|
145
|
+
_globals["_AGENTPUBLISHPLAN"]._serialized_end = 3149
|
|
146
|
+
_globals["_AGENTPUBLISHPLANISSUE"]._serialized_start = 3151
|
|
147
|
+
_globals["_AGENTPUBLISHPLANISSUE"]._serialized_end = 3240
|
|
148
|
+
_globals["_AGENTRUN"]._serialized_start = 3243
|
|
149
|
+
_globals["_AGENTRUN"]._serialized_end = 4005
|
|
150
|
+
_globals["_AGENTRUNEVENT"]._serialized_start = 4008
|
|
151
|
+
_globals["_AGENTRUNEVENT"]._serialized_end = 4344
|
|
152
152
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -21,26 +21,27 @@ else:
|
|
|
21
21
|
|
|
22
22
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
23
23
|
|
|
24
|
-
class
|
|
24
|
+
class _AgentDefinitionStatus:
|
|
25
25
|
ValueType = _typing.NewType("ValueType", _builtins.int)
|
|
26
26
|
V: _TypeAlias = ValueType # noqa: Y015
|
|
27
27
|
|
|
28
|
-
class
|
|
29
|
-
_enum_type_wrapper._EnumTypeWrapper[
|
|
28
|
+
class _AgentDefinitionStatusEnumTypeWrapper(
|
|
29
|
+
_enum_type_wrapper._EnumTypeWrapper[_AgentDefinitionStatus.ValueType],
|
|
30
|
+
_builtins.type,
|
|
30
31
|
):
|
|
31
32
|
DESCRIPTOR: _descriptor.EnumDescriptor
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
AGENT_DEFINITION_STATUS_UNSPECIFIED: _AgentDefinitionStatus.ValueType # 0
|
|
34
|
+
AGENT_DEFINITION_STATUS_ACTIVE: _AgentDefinitionStatus.ValueType # 1
|
|
35
|
+
AGENT_DEFINITION_STATUS_ARCHIVED: _AgentDefinitionStatus.ValueType # 2
|
|
35
36
|
|
|
36
|
-
class
|
|
37
|
-
|
|
37
|
+
class AgentDefinitionStatus(
|
|
38
|
+
_AgentDefinitionStatus, metaclass=_AgentDefinitionStatusEnumTypeWrapper
|
|
38
39
|
): ...
|
|
39
40
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
AGENT_DEFINITION_STATUS_UNSPECIFIED: AgentDefinitionStatus.ValueType # 0
|
|
42
|
+
AGENT_DEFINITION_STATUS_ACTIVE: AgentDefinitionStatus.ValueType # 1
|
|
43
|
+
AGENT_DEFINITION_STATUS_ARCHIVED: AgentDefinitionStatus.ValueType # 2
|
|
44
|
+
Global___AgentDefinitionStatus: _TypeAlias = AgentDefinitionStatus # noqa: Y015
|
|
44
45
|
|
|
45
46
|
class _AgentToolDescriptorKind:
|
|
46
47
|
ValueType = _typing.NewType("ValueType", _builtins.int)
|
|
@@ -161,7 +162,7 @@ AGENT_RUN_EVENT_KIND_CANCELED: AgentRunEventKind.ValueType # 11
|
|
|
161
162
|
Global___AgentRunEventKind: _TypeAlias = AgentRunEventKind # noqa: Y015
|
|
162
163
|
|
|
163
164
|
@_typing.final
|
|
164
|
-
class
|
|
165
|
+
class AgentDefinition(_message.Message):
|
|
165
166
|
DESCRIPTOR: _descriptor.Descriptor
|
|
166
167
|
|
|
167
168
|
ID_FIELD_NUMBER: _builtins.int
|
|
@@ -181,7 +182,7 @@ class AgentTemplate(_message.Message):
|
|
|
181
182
|
slug: _builtins.str
|
|
182
183
|
name: _builtins.str
|
|
183
184
|
description: _builtins.str
|
|
184
|
-
status:
|
|
185
|
+
status: Global___AgentDefinitionStatus.ValueType
|
|
185
186
|
created_by_user_id: _builtins.str
|
|
186
187
|
draft_revision: _builtins.int
|
|
187
188
|
latest_version_id: _builtins.str
|
|
@@ -198,7 +199,7 @@ class AgentTemplate(_message.Message):
|
|
|
198
199
|
slug: _builtins.str | None = ...,
|
|
199
200
|
name: _builtins.str | None = ...,
|
|
200
201
|
description: _builtins.str | None = ...,
|
|
201
|
-
status:
|
|
202
|
+
status: Global___AgentDefinitionStatus.ValueType | None = ...,
|
|
202
203
|
created_by_user_id: _builtins.str | None = ...,
|
|
203
204
|
draft_revision: _builtins.int | None = ...,
|
|
204
205
|
latest_version_id: _builtins.str | None = ...,
|
|
@@ -262,14 +263,14 @@ class AgentTemplate(_message.Message):
|
|
|
262
263
|
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
263
264
|
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
264
265
|
|
|
265
|
-
|
|
266
|
+
Global___AgentDefinition: _TypeAlias = AgentDefinition # noqa: Y015
|
|
266
267
|
|
|
267
268
|
@_typing.final
|
|
268
269
|
class AgentDraft(_message.Message):
|
|
269
270
|
DESCRIPTOR: _descriptor.Descriptor
|
|
270
271
|
|
|
271
272
|
ID_FIELD_NUMBER: _builtins.int
|
|
272
|
-
|
|
273
|
+
DEFINITION_ID_FIELD_NUMBER: _builtins.int
|
|
273
274
|
ORGANIZATION_ID_FIELD_NUMBER: _builtins.int
|
|
274
275
|
BASE_VERSION_ID_FIELD_NUMBER: _builtins.int
|
|
275
276
|
REVISION_FIELD_NUMBER: _builtins.int
|
|
@@ -286,7 +287,7 @@ class AgentDraft(_message.Message):
|
|
|
286
287
|
CREATED_AT_FIELD_NUMBER: _builtins.int
|
|
287
288
|
UPDATED_AT_FIELD_NUMBER: _builtins.int
|
|
288
289
|
id: _builtins.str
|
|
289
|
-
|
|
290
|
+
definition_id: _builtins.str
|
|
290
291
|
organization_id: _builtins.str
|
|
291
292
|
base_version_id: _builtins.str
|
|
292
293
|
revision: _builtins.int
|
|
@@ -314,7 +315,7 @@ class AgentDraft(_message.Message):
|
|
|
314
315
|
self,
|
|
315
316
|
*,
|
|
316
317
|
id: _builtins.str | None = ...,
|
|
317
|
-
|
|
318
|
+
definition_id: _builtins.str | None = ...,
|
|
318
319
|
organization_id: _builtins.str | None = ...,
|
|
319
320
|
base_version_id: _builtins.str | None = ...,
|
|
320
321
|
revision: _builtins.int | None = ...,
|
|
@@ -336,6 +337,8 @@ class AgentDraft(_message.Message):
|
|
|
336
337
|
b"base_version_id",
|
|
337
338
|
"created_at",
|
|
338
339
|
b"created_at",
|
|
340
|
+
"definition_id",
|
|
341
|
+
b"definition_id",
|
|
339
342
|
"description",
|
|
340
343
|
b"description",
|
|
341
344
|
"id",
|
|
@@ -358,8 +361,6 @@ class AgentDraft(_message.Message):
|
|
|
358
361
|
b"provider_configuration_id",
|
|
359
362
|
"revision",
|
|
360
363
|
b"revision",
|
|
361
|
-
"template_id",
|
|
362
|
-
b"template_id",
|
|
363
364
|
"tools",
|
|
364
365
|
b"tools",
|
|
365
366
|
"updated_at",
|
|
@@ -373,6 +374,8 @@ class AgentDraft(_message.Message):
|
|
|
373
374
|
b"base_version_id",
|
|
374
375
|
"created_at",
|
|
375
376
|
b"created_at",
|
|
377
|
+
"definition_id",
|
|
378
|
+
b"definition_id",
|
|
376
379
|
"description",
|
|
377
380
|
b"description",
|
|
378
381
|
"id",
|
|
@@ -395,8 +398,6 @@ class AgentDraft(_message.Message):
|
|
|
395
398
|
b"provider_configuration_id",
|
|
396
399
|
"revision",
|
|
397
400
|
b"revision",
|
|
398
|
-
"template_id",
|
|
399
|
-
b"template_id",
|
|
400
401
|
"tools",
|
|
401
402
|
b"tools",
|
|
402
403
|
"updated_at",
|
|
@@ -414,14 +415,14 @@ class AgentDraftPatch(_message.Message):
|
|
|
414
415
|
DESCRIPTOR: _descriptor.Descriptor
|
|
415
416
|
|
|
416
417
|
ID_FIELD_NUMBER: _builtins.int
|
|
417
|
-
|
|
418
|
+
DEFINITION_ID_FIELD_NUMBER: _builtins.int
|
|
418
419
|
ORGANIZATION_ID_FIELD_NUMBER: _builtins.int
|
|
419
420
|
REVISION_FIELD_NUMBER: _builtins.int
|
|
420
421
|
PATCH_FIELD_NUMBER: _builtins.int
|
|
421
422
|
CREATED_BY_USER_ID_FIELD_NUMBER: _builtins.int
|
|
422
423
|
CREATED_AT_FIELD_NUMBER: _builtins.int
|
|
423
424
|
id: _builtins.str
|
|
424
|
-
|
|
425
|
+
definition_id: _builtins.str
|
|
425
426
|
organization_id: _builtins.str
|
|
426
427
|
revision: _builtins.int
|
|
427
428
|
created_by_user_id: _builtins.str
|
|
@@ -433,7 +434,7 @@ class AgentDraftPatch(_message.Message):
|
|
|
433
434
|
self,
|
|
434
435
|
*,
|
|
435
436
|
id: _builtins.str | None = ...,
|
|
436
|
-
|
|
437
|
+
definition_id: _builtins.str | None = ...,
|
|
437
438
|
organization_id: _builtins.str | None = ...,
|
|
438
439
|
revision: _builtins.int | None = ...,
|
|
439
440
|
patch: _struct_pb2.Struct | None = ...,
|
|
@@ -445,6 +446,8 @@ class AgentDraftPatch(_message.Message):
|
|
|
445
446
|
b"created_at",
|
|
446
447
|
"created_by_user_id",
|
|
447
448
|
b"created_by_user_id",
|
|
449
|
+
"definition_id",
|
|
450
|
+
b"definition_id",
|
|
448
451
|
"id",
|
|
449
452
|
b"id",
|
|
450
453
|
"organization_id",
|
|
@@ -453,8 +456,6 @@ class AgentDraftPatch(_message.Message):
|
|
|
453
456
|
b"patch",
|
|
454
457
|
"revision",
|
|
455
458
|
b"revision",
|
|
456
|
-
"template_id",
|
|
457
|
-
b"template_id",
|
|
458
459
|
] # noqa: Y015
|
|
459
460
|
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
460
461
|
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
@@ -462,6 +463,8 @@ class AgentDraftPatch(_message.Message):
|
|
|
462
463
|
b"created_at",
|
|
463
464
|
"created_by_user_id",
|
|
464
465
|
b"created_by_user_id",
|
|
466
|
+
"definition_id",
|
|
467
|
+
b"definition_id",
|
|
465
468
|
"id",
|
|
466
469
|
b"id",
|
|
467
470
|
"organization_id",
|
|
@@ -470,8 +473,6 @@ class AgentDraftPatch(_message.Message):
|
|
|
470
473
|
b"patch",
|
|
471
474
|
"revision",
|
|
472
475
|
b"revision",
|
|
473
|
-
"template_id",
|
|
474
|
-
b"template_id",
|
|
475
476
|
] # noqa: Y015
|
|
476
477
|
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
477
478
|
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
@@ -483,7 +484,7 @@ class AgentVersion(_message.Message):
|
|
|
483
484
|
DESCRIPTOR: _descriptor.Descriptor
|
|
484
485
|
|
|
485
486
|
ID_FIELD_NUMBER: _builtins.int
|
|
486
|
-
|
|
487
|
+
DEFINITION_ID_FIELD_NUMBER: _builtins.int
|
|
487
488
|
ORGANIZATION_ID_FIELD_NUMBER: _builtins.int
|
|
488
489
|
VERSION_FIELD_NUMBER: _builtins.int
|
|
489
490
|
SOURCE_DRAFT_REVISION_FIELD_NUMBER: _builtins.int
|
|
@@ -499,7 +500,7 @@ class AgentVersion(_message.Message):
|
|
|
499
500
|
PUBLISHED_BY_USER_ID_FIELD_NUMBER: _builtins.int
|
|
500
501
|
PUBLISHED_AT_FIELD_NUMBER: _builtins.int
|
|
501
502
|
id: _builtins.str
|
|
502
|
-
|
|
503
|
+
definition_id: _builtins.str
|
|
503
504
|
organization_id: _builtins.str
|
|
504
505
|
version: _builtins.int
|
|
505
506
|
source_draft_revision: _builtins.int
|
|
@@ -525,7 +526,7 @@ class AgentVersion(_message.Message):
|
|
|
525
526
|
self,
|
|
526
527
|
*,
|
|
527
528
|
id: _builtins.str | None = ...,
|
|
528
|
-
|
|
529
|
+
definition_id: _builtins.str | None = ...,
|
|
529
530
|
organization_id: _builtins.str | None = ...,
|
|
530
531
|
version: _builtins.int | None = ...,
|
|
531
532
|
source_draft_revision: _builtins.int | None = ...,
|
|
@@ -542,6 +543,8 @@ class AgentVersion(_message.Message):
|
|
|
542
543
|
published_at: _timestamp_pb2.Timestamp | None = ...,
|
|
543
544
|
) -> None: ...
|
|
544
545
|
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
546
|
+
"definition_id",
|
|
547
|
+
b"definition_id",
|
|
545
548
|
"description",
|
|
546
549
|
b"description",
|
|
547
550
|
"id",
|
|
@@ -568,8 +571,6 @@ class AgentVersion(_message.Message):
|
|
|
568
571
|
b"published_by_user_id",
|
|
569
572
|
"source_draft_revision",
|
|
570
573
|
b"source_draft_revision",
|
|
571
|
-
"template_id",
|
|
572
|
-
b"template_id",
|
|
573
574
|
"tools",
|
|
574
575
|
b"tools",
|
|
575
576
|
"version",
|
|
@@ -577,6 +578,8 @@ class AgentVersion(_message.Message):
|
|
|
577
578
|
] # noqa: Y015
|
|
578
579
|
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
579
580
|
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
581
|
+
"definition_id",
|
|
582
|
+
b"definition_id",
|
|
580
583
|
"description",
|
|
581
584
|
b"description",
|
|
582
585
|
"id",
|
|
@@ -603,8 +606,6 @@ class AgentVersion(_message.Message):
|
|
|
603
606
|
b"published_by_user_id",
|
|
604
607
|
"source_draft_revision",
|
|
605
608
|
b"source_draft_revision",
|
|
606
|
-
"template_id",
|
|
607
|
-
b"template_id",
|
|
608
609
|
"tools",
|
|
609
610
|
b"tools",
|
|
610
611
|
"version",
|
|
@@ -696,12 +697,12 @@ Global___AgentToolDescriptor: _TypeAlias = AgentToolDescriptor # noqa: Y015
|
|
|
696
697
|
class AgentPublishPlan(_message.Message):
|
|
697
698
|
DESCRIPTOR: _descriptor.Descriptor
|
|
698
699
|
|
|
699
|
-
|
|
700
|
+
DEFINITION_ID_FIELD_NUMBER: _builtins.int
|
|
700
701
|
DRAFT_REVISION_FIELD_NUMBER: _builtins.int
|
|
701
702
|
PUBLISHABLE_FIELD_NUMBER: _builtins.int
|
|
702
703
|
ISSUES_FIELD_NUMBER: _builtins.int
|
|
703
704
|
COMPILED_PREVIEW_FIELD_NUMBER: _builtins.int
|
|
704
|
-
|
|
705
|
+
definition_id: _builtins.str
|
|
705
706
|
draft_revision: _builtins.int
|
|
706
707
|
publishable: _builtins.bool
|
|
707
708
|
@_builtins.property
|
|
@@ -715,7 +716,7 @@ class AgentPublishPlan(_message.Message):
|
|
|
715
716
|
def __init__(
|
|
716
717
|
self,
|
|
717
718
|
*,
|
|
718
|
-
|
|
719
|
+
definition_id: _builtins.str | None = ...,
|
|
719
720
|
draft_revision: _builtins.int | None = ...,
|
|
720
721
|
publishable: _builtins.bool | None = ...,
|
|
721
722
|
issues: _abc.Iterable[Global___AgentPublishPlanIssue] | None = ...,
|
|
@@ -724,27 +725,27 @@ class AgentPublishPlan(_message.Message):
|
|
|
724
725
|
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
725
726
|
"compiled_preview",
|
|
726
727
|
b"compiled_preview",
|
|
728
|
+
"definition_id",
|
|
729
|
+
b"definition_id",
|
|
727
730
|
"draft_revision",
|
|
728
731
|
b"draft_revision",
|
|
729
732
|
"issues",
|
|
730
733
|
b"issues",
|
|
731
734
|
"publishable",
|
|
732
735
|
b"publishable",
|
|
733
|
-
"template_id",
|
|
734
|
-
b"template_id",
|
|
735
736
|
] # noqa: Y015
|
|
736
737
|
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
737
738
|
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
738
739
|
"compiled_preview",
|
|
739
740
|
b"compiled_preview",
|
|
741
|
+
"definition_id",
|
|
742
|
+
b"definition_id",
|
|
740
743
|
"draft_revision",
|
|
741
744
|
b"draft_revision",
|
|
742
745
|
"issues",
|
|
743
746
|
b"issues",
|
|
744
747
|
"publishable",
|
|
745
748
|
b"publishable",
|
|
746
|
-
"template_id",
|
|
747
|
-
b"template_id",
|
|
748
749
|
] # noqa: Y015
|
|
749
750
|
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
750
751
|
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
@@ -786,7 +787,7 @@ class AgentRun(_message.Message):
|
|
|
786
787
|
|
|
787
788
|
ID_FIELD_NUMBER: _builtins.int
|
|
788
789
|
ORGANIZATION_ID_FIELD_NUMBER: _builtins.int
|
|
789
|
-
|
|
790
|
+
AGENT_DEFINITION_ID_FIELD_NUMBER: _builtins.int
|
|
790
791
|
AGENT_VERSION_ID_FIELD_NUMBER: _builtins.int
|
|
791
792
|
STATUS_FIELD_NUMBER: _builtins.int
|
|
792
793
|
CREATED_BY_USER_ID_FIELD_NUMBER: _builtins.int
|
|
@@ -802,7 +803,7 @@ class AgentRun(_message.Message):
|
|
|
802
803
|
FINISHED_AT_FIELD_NUMBER: _builtins.int
|
|
803
804
|
id: _builtins.str
|
|
804
805
|
organization_id: _builtins.str
|
|
805
|
-
|
|
806
|
+
agent_definition_id: _builtins.str
|
|
806
807
|
agent_version_id: _builtins.str
|
|
807
808
|
status: Global___AgentRunStatus.ValueType
|
|
808
809
|
created_by_user_id: _builtins.str
|
|
@@ -826,7 +827,7 @@ class AgentRun(_message.Message):
|
|
|
826
827
|
*,
|
|
827
828
|
id: _builtins.str | None = ...,
|
|
828
829
|
organization_id: _builtins.str | None = ...,
|
|
829
|
-
|
|
830
|
+
agent_definition_id: _builtins.str | None = ...,
|
|
830
831
|
agent_version_id: _builtins.str | None = ...,
|
|
831
832
|
status: Global___AgentRunStatus.ValueType | None = ...,
|
|
832
833
|
created_by_user_id: _builtins.str | None = ...,
|
|
@@ -842,8 +843,8 @@ class AgentRun(_message.Message):
|
|
|
842
843
|
finished_at: _timestamp_pb2.Timestamp | None = ...,
|
|
843
844
|
) -> None: ...
|
|
844
845
|
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
845
|
-
"
|
|
846
|
-
b"
|
|
846
|
+
"agent_definition_id",
|
|
847
|
+
b"agent_definition_id",
|
|
847
848
|
"agent_version_id",
|
|
848
849
|
b"agent_version_id",
|
|
849
850
|
"chat_session_id",
|
|
@@ -877,8 +878,8 @@ class AgentRun(_message.Message):
|
|
|
877
878
|
] # noqa: Y015
|
|
878
879
|
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
879
880
|
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
880
|
-
"
|
|
881
|
-
b"
|
|
881
|
+
"agent_definition_id",
|
|
882
|
+
b"agent_definition_id",
|
|
882
883
|
"agent_version_id",
|
|
883
884
|
b"agent_version_id",
|
|
884
885
|
"chat_session_id",
|