Prompt_Chain utilities for data models and type definitions used throughout the maxim sdk.
Name | Description |
---|---|
input | Cost for input tokens |
output | Cost for output tokens |
total | Total execution cost |
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 |
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 |
Name | Description |
---|---|
response | The actual response text from the agent |
meta | Metadata about the response including costs and usage |
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 |
Name | Description |
---|---|
prompt | The Prompt object to be executed |
Name | Description |
---|---|
code | The code string to be executed |
Name | Description |
---|---|
id | Unique identifier for the parameter |
key | Parameter key name |
value | Parameter value |
Name | Description |
---|---|
api | Dictionary containing API configuration |
Name | Description |
---|---|
order | Execution order of this node in the chain |
content | The actual content (PromptNode, CodeBlockNode, or ApiNode) |
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 |
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 |
Name | Description |
---|---|
data | Dictionary containing prompt chain data |
Name | Description |
---|---|
[PromptChain](/sdk/python/references/models/prompt_chain) | New instance created from the dictionary data |
Name | Description |
---|---|
nodes | List of nodes in this version configuration |
Name | Description |
---|---|
data | Dictionary containing version configuration data |
Name | Description |
---|---|
[PromptChainVersionConfig](/sdk/python/references/models/prompt_chain) | New instance created from the dictionary data |
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 |
Name | Description |
---|---|
data | Dictionary containing version data |
Name | Description |
---|---|
[PromptChainVersion](/sdk/python/references/models/prompt_chain) | New instance created from the dictionary data |
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 |
Name | Description |
---|---|
obj | Dictionary containing rule data |
Name | Description |
---|---|
[PromptChainRuleType](/sdk/python/references/models/prompt_chain) | New instance created from the dictionary data |
Name | Description |
---|---|
rules | List of rules or nested rule groups |
combinator | Logical operator to combine rules (“and” or “or”) |
Name | Description |
---|---|
obj | Dictionary containing rule group data |
Name | Description |
---|---|
[PromptChainRuleGroupType](/sdk/python/references/models/prompt_chain) | New instance created from the dictionary data |
Name | Description |
---|---|
version | The version number these rules apply to |
query | Optional rule group that defines the deployment conditions |
Name | Description |
---|---|
obj | Dictionary containing deployment rules data |
Name | Description |
---|---|
[PromptChainDeploymentRules](/sdk/python/references/models/prompt_chain) | New instance created from the dictionary data |
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 |
Name | Description |
---|---|
obj | Dictionary containing deployment configuration data |
Name | Description |
---|---|
[VersionSpecificDeploymentConfig](/sdk/python/references/models/prompt) | New instance created from the dictionary data |
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 |
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 |
Name | Description |
---|---|
promptChainId | Unique identifier of the prompt chain |
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 |
Name | Description |
---|---|
data | The prompt chain versions and rules data |
error | Optional error information if the API call failed |
Name | Description |
---|---|
data | Dictionary containing API response data |
Name | Description |
---|---|
[MaximApiPromptChainResponse](/sdk/python/references/models/prompt_chain) | New instance created from the dictionary data |
Name | Description |
---|---|
promptChainId | Unique identifier of the prompt chain |
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 |
Name | Description |
---|---|
o | Object to encode |
Name | Description |
---|---|
dict | Dictionary representation of the object, or calls parent default |
Name | Description |
---|---|
data | List of prompt chains with their versions and rules |
error | Optional error information if the API call failed |
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 |