- create - CreateAgent
- delete - DeleteAgent
- duplicate - DuplicateAgent
- get_agent - GetAgent
- get_db_schema - Read-only table/column list for the agent's private DuckDB memory (agent_db).
- get_db_table_preview - A bounded row preview of one agent_db table (SELECT ... LIMIT n).
- get_run - GetAgentRun
- list_runs - ListAgentRuns
- list - ListAgents
- reset_agent_avatar - ResetAgentAvatar
- trigger_agent - TriggerAgent
- update - UpdateAgent
- upload_agent_avatar - UploadAgentAvatar
CreateAgent
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.agents.create()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
name |
Optional[str] | ➖ | N/A |
prompt |
Optional[str] | ➖ | N/A |
paradigm_options |
Optional[models.TextqlRPCPublicParadigmParadigmOptions] | ➖ | N/A |
source_suggestion_id |
Optional[str] | ➖ | N/A |
slack_channel_id |
OptionalNullable[str] | ➖ | N/A |
slack_dm_user_ids |
List[str] | ➖ | N/A |
skip_org_default_channel |
Optional[bool] | ➖ | N/A |
llm_model |
Optional[models.TextqlRPCPublicChatLlmModel] | ➖ | N/A |
fast_mode |
OptionalNullable[bool] | ➖ | N/A |
is_stateful |
OptionalNullable[bool] | ➖ | N/A |
posting_frequency_crons |
List[str] | ➖ | N/A |
email_recipient_member_ids |
List[str] | ➖ | N/A |
channel_ids |
List[str] | ➖ | N/A |
teams_channel_id |
OptionalNullable[str] | ➖ | N/A |
teams_dm_user_aad_ids |
List[str] | ➖ | N/A |
slack_trigger |
Optional[models.TextqlRPCPublicAgentSlackAgentTrigger] | ➖ | N/A |
posting_frequency_cadences |
List[str] | ➖ | Index-aligned with posting_frequency_crons. A non-empty cadence (HOURLY/FOUR-HOUR/EIGHT-HOUR/DAILY/WEEKLY) marks a flexible schedule whose cron the backend generates; "" (or an empty list) means exact. |
callable_as_subagent |
OptionalNullable[bool] | ➖ | Unset defaults to true: new agents are delegatable unless the caller opts out. Mirrors allow_ad_hoc_subagents below. |
subagent_invoker_member_ids |
List[str] | ➖ | N/A |
subagent_invoker_role_ids |
List[str] | ➖ | N/A |
feed_enabled |
OptionalNullable[bool] | ➖ | N/A |
subagent_agent_ids |
List[str] | ➖ | N/A |
allow_ad_hoc_subagents |
OptionalNullable[bool] | ➖ | N/A |
methodology |
Optional[models.TextqlRPCPublicChatMethodology] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.AgentServiceCreateAgentResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
DeleteAgent
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.agents.delete()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
agent_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.AgentServiceDeleteAgentResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
DuplicateAgent
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.agents.duplicate()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
agent_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.AgentServiceDuplicateAgentResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
GetAgent
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.agents.get_agent()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
agent_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.AgentServiceGetAgentResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
Read-only table/column list for the agent's private DuckDB memory (agent_db).
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.agents.get_db_schema()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
agent_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.AgentServiceGetAgentDBSchemaResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
A bounded row preview of one agent_db table (SELECT ... LIMIT n).
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.agents.get_db_table_preview()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
agent_id |
Optional[str] | ➖ | N/A |
table_name |
Optional[str] | ➖ | N/A |
limit |
Optional[int] | ➖ | clamped server-side; 0 uses the default |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.AgentServiceGetAgentDBTablePreviewResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
GetAgentRun
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.agents.get_run()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
run_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.AgentServiceGetAgentRunResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
ListAgentRuns
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.agents.list_runs()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
agent_id |
Optional[str] | ➖ | N/A |
trigger_source |
OptionalNullable[str] | ➖ | N/A |
status |
OptionalNullable[str] | ➖ | N/A |
limit |
Optional[int] | ➖ | N/A |
offset |
Optional[int] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.AgentServiceListAgentRunsResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
ListAgents
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.agents.list()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
include_inactive |
Optional[bool] | ➖ | N/A |
include_all_org |
Optional[bool] | ➖ | N/A |
days |
Optional[int] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.AgentServiceListAgentsResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
ResetAgentAvatar
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.agents.reset_agent_avatar()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
agent_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.AgentServiceResetAgentAvatarResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
TriggerAgent
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.agents.trigger_agent()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
agent_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.AgentServiceTriggerAgentResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
UpdateAgent
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.agents.update()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
agent_id |
Optional[str] | ➖ | N/A |
name |
Optional[str] | ➖ | N/A |
prompt |
Optional[str] | ➖ | N/A |
is_active |
Optional[bool] | ➖ | N/A |
paradigm_options |
Optional[models.TextqlRPCPublicParadigmParadigmOptions] | ➖ | N/A |
slack_channel_id |
OptionalNullable[str] | ➖ | N/A |
slack_dm_user_ids |
List[str] | ➖ | N/A |
skip_org_default_channel |
Optional[bool] | ➖ | N/A |
llm_model |
Optional[models.TextqlRPCPublicChatLlmModel] | ➖ | N/A |
fast_mode |
OptionalNullable[bool] | ➖ | N/A |
is_stateful |
OptionalNullable[bool] | ➖ | N/A |
posting_frequency_crons |
List[str] | ➖ | N/A |
email_recipient_member_ids |
List[str] | ➖ | N/A |
update_email_recipients |
OptionalNullable[bool] | ➖ | N/A |
channel_ids |
List[str] | ➖ | N/A |
update_channel_ids |
OptionalNullable[bool] | ➖ | N/A |
teams_channel_id |
OptionalNullable[str] | ➖ | N/A |
teams_dm_user_aad_ids |
List[str] | ➖ | N/A |
slack_trigger |
Optional[models.TextqlRPCPublicAgentSlackAgentTrigger] | ➖ | N/A |
posting_frequency_cadences |
List[str] | ➖ | Index-aligned with posting_frequency_crons. A non-empty cadence (HOURLY/FOUR-HOUR/EIGHT-HOUR/DAILY/WEEKLY) marks a flexible schedule whose cron the backend generates; "" (or an empty list) means exact. |
callable_as_subagent |
OptionalNullable[bool] | ➖ | Feed participation; nil = don't touch (mirrors fast_mode/is_stateful). |
subagent_invoker_member_ids |
List[str] | ➖ | N/A |
subagent_invoker_role_ids |
List[str] | ➖ | N/A |
update_subagent_invokers |
OptionalNullable[bool] | ➖ | N/A |
feed_enabled |
OptionalNullable[bool] | ➖ | N/A |
subagent_agent_ids |
List[str] | ➖ | N/A |
update_subagents |
OptionalNullable[bool] | ➖ | N/A |
allow_ad_hoc_subagents |
OptionalNullable[bool] | ➖ | N/A |
methodology |
Optional[models.TextqlRPCPublicChatMethodology] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.AgentServiceUpdateAgentResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
UploadAgentAvatar
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.agents.upload_agent_avatar()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
agent_id |
Optional[str] | ➖ | N/A |
image_data |
Optional[str] | ➖ | N/A |
file_name |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.AgentServiceUploadAgentAvatarResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |