AgentCost
| Name | Description |
|---|---|
input | Cost for input tokens |
output | Cost for output tokens |
total | Total execution cost |
AgentUsage
| Name | Description |
|---|---|
prompt_tokens | Number of tokens used in the prompt |
completion_tokens | Number of tokens used in the completion |
total_tokens | Total number of tokens used |
AgentResponseMeta
| Name | Description |
|---|---|
cost | Cost breakdown for the response |
usage | Token usage statistics |
bound_variable_responses | Optional dictionary of bound variable values |
retrieved_context | Optional retrieved context string |
AgentResponse
| Name | Description |
|---|---|
response | The actual response text from the agent |
meta | Metadata about the response including costs and usage |
from_dict
| Name | Description |
|---|---|
data | Dictionary containing response and meta fields |
| Name | Description |
|---|---|
[AgentResponse](/sdk/python/references/models/prompt_chain) | New instance created from the dictionary data |
PromptNode
| Name | Description |
|---|---|
prompt | The Prompt object to be executed |
CodeBlockNode
| Name | Description |
|---|---|
code | The code string to be executed |
ApiParams
| Name | Description |
|---|---|
id | Unique identifier for the parameter |
key | Parameter key name |
value | Parameter value |
ApiNode
| Name | Description |
|---|---|
api | Dictionary containing API configuration |
Node
| Name | Description |
|---|---|
order | Execution order of this node in the chain |
content | The actual content (PromptNode, CodeBlockNode, or ApiNode) |
from_dict
| Name | Description |
|---|---|
data | Dictionary containing order and content type fields |
| Name | Description |
|---|---|
[Node](/sdk/python/references/models/prompt_chain) | New instance created from the dictionary data |
PromptChain
| Name | Description |
|---|---|
prompt_chain_id | Unique identifier for the prompt chain |
version | Version number of this chain |
version_id | Unique identifier for this specific version |
nodes | List of nodes that make up the chain |
from_dict
| Name | Description |
|---|---|
data | Dictionary containing prompt chain data |
| Name | Description |
|---|---|
[PromptChain](/sdk/python/references/models/prompt_chain) | New instance created from the dictionary data |
PromptChainVersionConfig
| Name | Description |
|---|---|
nodes | List of nodes in this version configuration |
from_dict
| Name | Description |
|---|---|
data | Dictionary containing version configuration data |
| Name | Description |
|---|---|
[PromptChainVersionConfig](/sdk/python/references/models/prompt_chain) | New instance created from the dictionary data |
PromptChainVersion
| Name | Description |
|---|---|
id | Unique identifier for this version |
version | Version number |
promptChainId | ID of the parent prompt chain |
description | Optional description of this version |
config | Optional configuration for this version |
createdAt | Timestamp when this version was created |
updatedAt | Timestamp when this version was last updated |
from_dict
| Name | Description |
|---|---|
data | Dictionary containing version data |
| Name | Description |
|---|---|
[PromptChainVersion](/sdk/python/references/models/prompt_chain) | New instance created from the dictionary data |
PromptChainRuleType
| Name | Description |
|---|---|
field | The field to evaluate in the rule |
value | The value to compare against (can be various types including None) |
operator | The comparison operator to use |
valueSource | Optional source of the value |
exactMatch | Optional flag for exact matching |
value
adding None herefrom_dict
| Name | Description |
|---|---|
obj | Dictionary containing rule data |
| Name | Description |
|---|---|
[PromptChainRuleType](/sdk/python/references/models/prompt_chain) | New instance created from the dictionary data |
PromptChainRuleGroupType
| Name | Description |
|---|---|
rules | List of rules or nested rule groups |
combinator | Logical operator to combine rules (“and” or “or”) |
from_dict
| Name | Description |
|---|---|
obj | Dictionary containing rule group data |
| Name | Description |
|---|---|
[PromptChainRuleGroupType](/sdk/python/references/models/prompt_chain) | New instance created from the dictionary data |
PromptChainDeploymentRules
| Name | Description |
|---|---|
version | The version number these rules apply to |
query | Optional rule group that defines the deployment conditions |
from_dict
| Name | Description |
|---|---|
obj | Dictionary containing deployment rules data |
| Name | Description |
|---|---|
[PromptChainDeploymentRules](/sdk/python/references/models/prompt_chain) | New instance created from the dictionary data |
VersionSpecificDeploymentConfig
| Name | Description |
|---|---|
id | Unique identifier for this deployment configuration |
timestamp | When this configuration was created |
rules | The deployment rules for this configuration |
isFallback | Whether this is a fallback configuration |
from_dict
| Name | Description |
|---|---|
obj | Dictionary containing deployment configuration data |
| Name | Description |
|---|---|
[VersionSpecificDeploymentConfig](/sdk/python/references/models/prompt) | New instance created from the dictionary data |
PromptChainVersionsAndRules
| Name | Description |
|---|---|
folderId | ID of the folder containing this prompt chain |
rules | Dictionary mapping rule IDs to lists of deployment configurations |
versions | List of all available versions |
fallbackVersion | Optional fallback version to use when rules don’t match |
from_dict
| Name | Description |
|---|---|
obj | Dictionary containing versions and rules data |
| Name | Description |
|---|---|
[PromptChainVersionsAndRules](/sdk/python/references/models/prompt_chain) | New instance created from the dictionary data |
VersionAndRulesWithPromptChainId
| Name | Description |
|---|---|
promptChainId | Unique identifier of the prompt chain |
from_dict
| Name | Description |
|---|---|
obj | Dictionary containing versions, rules, and prompt chain ID data |
| Name | Description |
|---|---|
[VersionAndRulesWithPromptChainId](/sdk/python/references/models/prompt_chain) | New instance created from the dictionary data |
MaximApiPromptChainResponse
| Name | Description |
|---|---|
data | The prompt chain versions and rules data |
error | Optional error information if the API call failed |
from_dict
| Name | Description |
|---|---|
data | Dictionary containing API response data |
| Name | Description |
|---|---|
[MaximApiPromptChainResponse](/sdk/python/references/models/prompt_chain) | New instance created from the dictionary data |
PromptChainWithId
| Name | Description |
|---|---|
promptChainId | Unique identifier of the prompt chain |
from_dict
| Name | Description |
|---|---|
obj | Dictionary containing prompt chain data with ID |
| Name | Description |
|---|---|
[PromptChainWithId](/sdk/python/references/models/prompt_chain) | New instance created from the dictionary data |
VersionAndRulesWithPromptChainIdEncoder
default
| Name | Description |
|---|---|
o | Object to encode |
| Name | Description |
|---|---|
dict | Dictionary representation of the object, or calls parent default |
MaximApiPromptChainsResponse
| Name | Description |
|---|---|
data | List of prompt chains with their versions and rules |
error | Optional error information if the API call failed |
from_dict
| Name | Description |
|---|---|
incoming_data | Dictionary containing API response data for multiple chains |
| Name | Description |
|---|---|
[MaximApiPromptChainsResponse](/sdk/python/references/models/prompt_chain) | New instance created from the dictionary data |