Skip to main content
Import the Agent* types from @fal-ai/client. A ? marks an optional field. A null value is distinct from an omitted field. InputRequestBase defines shared fields within AgentInputRequest. It is not a separate package export. The declarations describe the SDK types. The request limits define accepted request values. Generic JSON fields have no additional stable schema. Check their shape before reading product-specific data.

AgentStatus

Definition

AgentJson

Definition

AgentFailure

Definition

AgentPlanStep

Definition

AgentBlock

Definition
Related: AgentJson.

AgentPlanBlock

Definition
Related: AgentBlock, AgentPlanStep.

AgentText

Definition
Related: AgentJson.

AgentMessage

Definition
Related: AgentText, AgentBlock.

AgentOperation

Generation operations use the run ID as id. Capability labels do not introduce additional client methods. See runs.
Definition
Related: AgentFailure.

AgentArtifact

Media artifacts use revision 1. Read optional files before using their URLs. See media.
Definition
Related: AgentJson.

AgentQuestion

Definition

InputRequestBase

Definition

AgentInputRequest

Definition
Related: AgentQuestion.

AgentAnswer

Definition

AgentOutputItem

Definition
Related: AgentMessage, AgentOperation, AgentArtifact, AgentInputRequest.

AgentActivity

Definition
Related: AgentJson.

AgentResponse

Definition
Related: AgentStatus, AgentOutputItem, AgentFailure, AgentActivity.

AgentResponseView

Definition
Related: AgentResponse, AgentArtifact, AgentInputRequest.

AgentInputContent

Artifact references accept revision 1 or an omitted revision. File and image parts reference URLs without uploading content.
Definition

AgentRequest

Use fal.skills to activate skills by name. See request limits and skills.
Definition
Related: AgentInputContent, AgentGenerationSettings, AgentGenerationSettingsOverrides.

AgentRequestOptions

Definition

AgentRunOptions

Definition
Related: AgentRequestOptions, AgentResponseView.

AgentStreamOptions

Definition
Related: AgentRunOptions.

AgentPage

Definition

AgentPageOptions

Definition
Related: AgentRequestOptions.

AgentConversation

Definition

AgentConversationItem

Definition
Related: AgentRequest, AgentAnswer, AgentOutputItem.

AgentPlanUpdate

Definition

AgentEvent

This is a transport envelope. Public stream methods yield AgentResponseView snapshots, not AgentEvent objects.
Definition
Related: AgentResponse.

AgentResourceOptions

Definition
Related: AgentRequestOptions.

AgentProject

Definition

AgentProjectSummary

Definition
Related: AgentProject.

AgentProjectConversation

Definition

AgentProjectResources

Definition
Related: AgentJson.

AgentProjectDocumentInput

Definition

AgentProjectDocument

Definition

AgentMemoryKind

Definition

AgentProjectMemory

Definition
Related: AgentMemoryKind.

AgentGenerationTask

Definition

AgentGenerationPreferences

Definition

AgentGenerationDefaults

A null override selects automatic behavior. Use inherit to restore inheritance. See defaults.
Definition
Related: AgentGenerationPreferences, AgentGenerationTask.

AgentGenerationSettings

Read before updating and preserve unrelated fields. See settings for field meaning and revision handling.
Definition
Related: AgentGenerationTask, AgentGenerationPreferences, AgentGenerationDefaults.

AgentGenerationSettingsOverrides

Definition
Related: AgentGenerationTask, AgentGenerationDefaults.

AgentDefaultsTarget

Definition

AgentDefaultsUpdate

Definition
Related: AgentGenerationDefaults, AgentGenerationPreferences, AgentGenerationTask.

AgentDefaultsSource

Definition

AgentDefaultsSources

Definition
Related: AgentGenerationPreferences, AgentDefaultsSource, AgentGenerationTask.

AgentDefaultsView

Definition
Related: AgentGenerationDefaults, AgentGenerationSettings, AgentDefaultsSources.

AgentModel

Definition

AgentModelCapabilities

Definition
Related: AgentJson.

AgentPreferences

Update one section at a time. See preferences for meanings, defaults, and permissions.
Definition
Related: AgentGenerationTask, AgentGenerationPreferences.

AgentQueueItem

Definition

AgentQueueDispatch

Definition

AgentRunView

Definition
Related: AgentOperation, AgentArtifact, AgentInputRequest.

AgentGenerationSummary

Definition

AgentLibraryMediaType

Definition

AgentLibraryEntityType

Definition

AgentLibraryEntityReference

Definition

AgentLibraryEntity

All five entity types use this shape. The references array contains defining images, not the associated-media gallery. See entities.
Definition
Related: AgentLibraryEntityType, AgentJson, AgentLibraryEntityReference.

AgentLibraryEntityQuery

Definition
Related: AgentLibraryEntityType.

AgentLibraryEntityInput

Characters require a description and do not accept custom metadata. All types require one to twenty defining reference images.
Definition
Related: AgentLibraryEntityType, AgentJson.

AgentLibraryEntityUpdate

Omitted fields stay unchanged. A supplied reference list replaces the complete defining set. Types and character handles cannot change. Character metadata is managed automatically.
Definition
Related: AgentJson.

AgentLibraryTag

Definition

AgentCharacterInput

Definition

AgentCharacterReference

Definition

AgentLibraryAsset

Use assetRecordId for library writes. It can be absent or null. Other IDs are not substitutes.
Definition
Related: AgentLibraryMediaType.

AgentLibraryAssetQuery

Definition
Related: AgentLibraryMediaType.

AgentCollectionFilter

Semantic filters require exactly one query input. Filter depth cannot exceed three levels. See smart collections.
Definition

AgentCollectionInput

Definition
Related: AgentCollectionFilter.

AgentLibraryCollection

Definition
Related: AgentLibraryEntityType, AgentCollectionFilter.

AgentSkillContent

Definition

AgentSkillSource

Definition

AgentSkill

Definition
Related: AgentSkillContent.

AgentInstalledSkill

Definition
Related: AgentSkillContent, AgentJson.

AgentSkillImportPreview

Definition

AgentConversationSharePolicy

Definition

AgentConversationSharingInput

Definition

AgentProjectDocumentImport

Definition