- deliver - Deliver
- execute_write - ExecuteWrite
- poll_ask - PollAsk
- put_asset - PutAsset
- send_notify - SendNotify
- start_ask - StartAsk
- state_op - StateOp
Deliver
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.sandbox_capabilities.deliver()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
name |
Optional[str] | ➖ | N/A |
subject |
Optional[str] | ➖ | N/A |
body |
Optional[str] | ➖ | N/A |
routing_json |
Optional[str] | ➖ | N/A |
parameters |
List[models.TextqlRPCPublicSandboxQuerySandboxQueryParam] | ➖ | N/A |
attachment_urls |
List[str] | ➖ | N/A |
recipient_emails |
List[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.SandboxCapabilityServiceDeliverResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
ExecuteWrite
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.sandbox_capabilities.execute_write()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
name |
Optional[str] | ➖ | N/A |
connector_id |
Optional[int] | ➖ | N/A |
statement |
Optional[str] | ➖ | N/A |
parameters |
List[models.TextqlRPCPublicSandboxQuerySandboxQueryParam] | ➖ | N/A |
max_rows |
Optional[models.TextqlRPCPublicSandboxCapabilitySandboxExecuteWriteRequestMaxRows] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.SandboxCapabilityServiceExecuteWriteResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
PollAsk
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.sandbox_capabilities.poll_ask()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
name |
Optional[str] | ➖ | N/A |
agent_id |
Optional[str] | ➖ | N/A |
ask_id |
Optional[str] | ➖ | N/A |
cursor |
Optional[str] | ➖ | N/A |
app_db |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.SandboxCapabilityServicePollAskResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
PutAsset
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.sandbox_capabilities.put_asset()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
file_name |
Optional[str] | ➖ | N/A |
content_type |
Optional[str] | ➖ | N/A |
data |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.SandboxCapabilityServicePutAssetResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
SendNotify
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.sandbox_capabilities.send_notify()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
name |
Optional[str] | ➖ | N/A |
subject |
Optional[str] | ➖ | N/A |
body |
Optional[str] | ➖ | N/A |
parameters |
List[models.TextqlRPCPublicSandboxQuerySandboxQueryParam] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.SandboxCapabilityServiceSendNotifyResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
StartAsk
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.sandbox_capabilities.start_ask()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
name |
Optional[str] | ➖ | N/A |
agent_id |
Optional[str] | ➖ | N/A |
prompt |
Optional[str] | ➖ | N/A |
app_db |
Optional[str] | ➖ | N/A |
continue_ask_id |
Optional[str] | ➖ | ask id of an earlier base-agent ask to follow up in; empty starts a new thread |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.SandboxCapabilityServiceStartAskResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
StateOp
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.sandbox_capabilities.state_op()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
op |
Optional[str] | ➖ | N/A |
scope |
Optional[str] | ➖ | N/A |
key |
Optional[str] | ➖ | N/A |
value |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.SandboxCapabilityServiceStateOpResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |