symfonic.agent.cli.main¶
main ¶
Symfonic agent CLI.
Commands
chat -- Run a single query against the agent. migrate -- Placeholder for future HMS data migration.
Usage
python -m symfonic.agent.cli.main chat "Hello" --tenant-id t1 symfonic chat "Hello" --tenant-id t1 symfonic migrate old://db new://db
chat ¶
chat(query: Annotated[str, Argument(help='Query to send to the agent.')], tenant_id: Annotated[str, Option('--tenant-id', help='Tenant identifier (required).')], dsn: Annotated[str | None, Option('--dsn', help='Postgres DSN for persistent memory.')] = None, model: Annotated[str, Option('--model', help='Model provider name (default: mock).')] = 'mock', enable_hms: Annotated[bool, Option('--enable-hms', help='Enable HMS-aware system prompt.')] = False, domain: Annotated[str, Option('--domain', help="Domain template name. Use 'default' for generic agent. Custom domains should be injected programmatically.")] = 'default', retrieval_min_relevance: Annotated[float, Option('--retrieval-min-relevance', min=0.0, max=1.0, help='Native HMS relevance floor (default: 0.0).')] = 0.0) -> None
Run a single query against the Symfonic agent.
This command is a mapper: it decodes the arguments, hands them to
:func:symfonic.cli.chat.run_chat, and formats the result. Which runtime
executes the turn -- a bare or presented public Agent, or a native
durable HMS composition -- is decided there.
Source code in src/symfonic/agent/cli/main.py
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 | |
examples_add ¶
examples_add(name: Annotated[str, Argument(help="Example to copy (see 'symfonic examples list').")], dest: Annotated[Path, Option('--dir', '-d', help='Destination directory (default: cwd).')] = Path('.'), force: Annotated[bool, Option('--force', help='Overwrite an existing target directory.')] = False) -> None
Copy a curated example into <dir>/<name>/ and print how to run it.
Source code in src/symfonic/agent/cli/main.py
examples_list ¶
List the curated examples available to copy.
Source code in src/symfonic/agent/cli/main.py
guide ¶
Print the agent quick reference (decision tree, imports, footguns).
The reference (AGENTS.md) ships inside the wheel, so this works offline
with no repo checkout -- the canonical entry point for an agent or person
figuring out how to build with symfonic-core from an installed package.
Source code in src/symfonic/agent/cli/main.py
migrate ¶
migrate(source_uri: Annotated[str, Argument(help='Source data URI.')], target_uri: Annotated[str, Argument(help='Target data URI.')]) -> None
Migrate HMS data between storage backends (stub).