FibonacciClient class provides methods for interacting with Fibonacci Cloud, including workflow deployment, execution, and management.
Constructor
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key | str | Required | Fibonacci API key |
base_url | str | "https://api.fibonacci.dev" | API base URL |
timeout | int | 60 | Default request timeout |
max_retries | int | 3 | Max retry attempts |
organization_id | str | None | Organization identifier |
Authentication
From Environment
From Keychain
Workflow Methods
deploy
Deploy a workflow to Fibonacci Cloud.workflow: Workflow instance or path to YAML fileenvironment: Target environment (development/staging/production)version: Version tag
DeploymentResult
Example:
execute
Execute a deployed workflow.workflow_name: Name of deployed workflowinputs: Input dataenvironment: Target environmenttimeout: Execution timeoutasync_execution: Return immediately with handle
ExecutionResult or ExecutionHandle (if async)
Example:
get_execution
Get execution status and results.execution_id: Execution identifier
ExecutionResult
list_executions
List workflow executions.workflow_name: Filter by workflowenvironment: Filter by environmentstatus: Filter by status (running/success/failed)limit: Max resultsoffset: Pagination offset
ExecutionSummary
cancel_execution
Cancel a running execution.execution_id: Execution identifier
True if cancelled
Workflow Management
list_workflows
List deployed workflows.get_workflow
Get workflow details.delete_workflow
Delete a deployed workflow.Tool Methods
list_tools
List available tools.get_tool
Get tool details.connect_tool
Connect an external tool.Memory Methods
get_memory
Retrieve a memory value.set_memory
Store a memory value.delete_memory
Delete a memory value.Async Client
For async applications, useAsyncFibonacciClient: