Skip to content

API Reference parrot_tools.workday.tool

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.workday.tool

View source

Workday Toolkit - A unified toolkit for Workday SOAP operations with multi-service support.

This toolkit wraps common Workday operations across multiple services (Human Resources, Absence Management, Time Tracking, Staffing, Financial Management, and Recruiting) as async tools, extending AbstractToolkit and using SOAPClient for SOAP/WSDL handling.

Alias AbstractToolkit

Re-exported from parrot_tools.toolkit.AbstractToolkit.

Class CustomReportInput

Input for executing a Workday RaaS custom report.

Fields:

Field Type Default Description
report_name str Workday custom report name (as defined in Workday)
report_owner Optional[str] None Owner of the report (email/ID). Defaults to configured owner.
params Dict[str, Any] Query parameters for the custom report (keys/values sent to RaaS)
query_string_template Optional[str] None Optional query string template, e.g., 'Organization!WID={org_wid}&To_Date={end_date}'
flatten_list_dicts bool False Flatten nested dict/list fields in the response entries
drop_flattened_columns bool False Drop columns that remain as lists/dicts after flattening

Class FindEmployeeByNameInput

Input for finding a worker by name.

Fields:

Field Type Default Description
name str Full or partial worker name to search for
max_results int 50 Maximum number of results

Class GetCompanyPaymentDatesInput

Input for retrieving company payment dates.

Fields:

Field Type Default Description
start_date str Start date for payment dates (YYYY-MM-DD)
end_date str End date for payment dates (YYYY-MM-DD)
pay_group_id Optional[str] None Optional Pay Group ID to filter by

Class GetJobProfileInput

Input for retrieving a Job Profile by Job_Profile_ID.

Fields:

Field Type Default Description
job_profile_id str Workday Job Profile ID / job code (e.g., 'STFLV')

Class GetOrganizationInput

Input for retrieving organization information.

Fields:

Field Type Default Description
org_id str Organization ID or reference ID
include_hierarchy bool False Include organizational hierarchy

Class GetPayrollBalancesInput

Input for retrieving payroll balances.

Fields:

Field Type Default Description
worker_id str Worker ID to get balances for
start_date Optional[str] None Start date for balance calculation (YYYY-MM-DD)
end_date Optional[str] None End date for balance calculation (YYYY-MM-DD)
pay_component_group_ids Optional[List[str]] None List of Pay Component Group IDs to filter by

Class GetPayrollResultsInput

Input for retrieving payroll results (historical/off-cycle).

Fields:

Field Type Default Description
worker_id str Worker ID to get results for
start_date Optional[str] None Start date for results (YYYY-MM-DD)
end_date Optional[str] None End date for results (YYYY-MM-DD)
include_details bool False Include detailed result lines

Class GetPositionInput

Input for retrieving a single position (seat) by Position_ID.

Fields:

Field Type Default Description
position_id str Workday Position ID (e.g., 'P105294')
include_closed bool True Also return closed positions (Workday omits them by default)

Class GetTimeOffBalanceInput

Input for retrieving time off balance information.

Fields:

Field Type Default Description
worker_id str Worker ID to get time off balance for
time_off_plan_id Optional[str] None Optional specific time off plan ID to filter by
output_format Optional[Type[BaseModel]] None Optional Pydantic model to format the output

Class GetTimeOffBalanceInput2

Input for retrieving time off plan balances.

Fields:

Field Type Default Description
worker_id str Workday Employee ID
time_off_plan_id Optional[str] None Optional specific time off plan ID to filter

Class GetTimeOffHistoryInput

Input for retrieving a worker's time-off request history.

Fields:

Field Type Default Description
worker_id str Workday Employee ID
start_date Optional[str] None Start of date range (YYYY-MM-DD). Defaults to 7 days ago.
end_date Optional[str] None End of date range (YYYY-MM-DD). Defaults to today.

Class GetWorkerContactInput

Input for retrieving worker contact information.

Fields:

Field Type Default Description
worker_id str Worker ID to get contact info for
include_personal bool True Include personal contact information
include_work bool True Include work contact information

Class GetWorkerEventHistoryInput

Input for retrieving a worker's Workday event history.

Fields:

Field Type Default Description
worker_id str Worker WID, Employee ID or Contingent Worker ID
worker_id_type Optional[str] None WID | Employee_ID | Contingent_Worker_ID; omit to auto-detect (WID by shape, else Employee_ID then Contingent_Worker_ID)
effective_from Optional[str] None YYYY-MM-DD; requires effective_through
effective_through Optional[str] None YYYY-MM-DD; requires effective_from
updated_from Optional[str] None YYYY-MM-DD; requires updated_through
updated_through Optional[str] None YYYY-MM-DD; requires updated_from

Class GetWorkerInfoInput

Input for retrieving worker information by ID.

Fields:

Field Type Default Description
worker_id str Workday Employee ID

Class GetWorkerInput

Input for retrieving a single worker by ID.

Fields:

Field Type Default Description
worker_id str Worker ID (Employee ID, Contingent Worker ID, or WID)
output_format Optional[Type[BaseModel]] None Optional Pydantic model to format the output

Class GetWorkerJobChangesInput

Input for detecting a worker's job position / profile / organization changes.

Fields:

Field Type Default Description
worker_id str Worker WID, Employee ID or Contingent Worker ID
worker_id_type Optional[str] None WID | Employee_ID | Contingent_Worker_ID; omit to auto-detect (WID by shape, else Employee_ID then Contingent_Worker_ID)
effective_from Optional[str] None YYYY-MM-DD; requires effective_through
effective_through Optional[str] None YYYY-MM-DD; requires effective_from
include_unchanged bool False Also return job events whose snapshots are identical
include_compensation bool False Also snapshot and diff compensation (wage, currency, frequency, package/grade/profile) and include compensation-change events

Class GetWorkerJobDataInput

Input for retrieving worker's job-related data.

Fields:

Field Type Default Description
worker_id str Worker ID to get job data for
effective_date Optional[str] None Effective date for job data (YYYY-MM-DD). Defaults to today.

Class RequestTimeOffInput

Input for submitting a time-off request.

Fields:

Field Type Default Description
worker_id str Workday Employee ID
start_date str First day of the time-off period (YYYY-MM-DD)
end_date str Last day of the time-off period (YYYY-MM-DD)
time_off_type str Time_Off_Type_ID value (e.g. 'VACATION', 'PTO')
daily_quantity float 8.0 Hours or days per calendar day (default 8.0)
comment Optional[str] None Optional comment on the request
dry_run bool True If True (default), validates the request without submitting to Workday

Class SearchWorkersInput

Input for searching workers with filters.

Fields:

Field Type Default Description
search_text Optional[str] None Text to search in worker names, emails, or IDs
manager_id Optional[str] None Filter by manager's worker ID
location_id Optional[str] None Filter by location ID
job_profile_id Optional[str] None Filter by job profile ID
hire_date_from Optional[str] None Filter by hire date (YYYY-MM-DD format) - from
hire_date_to Optional[str] None Filter by hire date (YYYY-MM-DD format) - to
max_results int 100 Maximum number of results to return

Alias WorkdayComposable

Re-exported from parrot_tools.interfaces.workday.service.WorkdayService.

Alias WorkdayConfig

Re-exported from parrot_tools.interfaces.workday.config.WorkdayConfig.

Alias WorkdayResponseParser

Re-exported from parrot_tools.workday.models.WorkdayResponseParser.

Class WorkdayToolkit

Toolkit for interacting with Workday via SOAP/WSDL with multi-service support.

This toolkit provides async tools for Workday operations across multiple services:

  • Human Resources: Worker management, organization queries, employment data
  • Absence Management: Time off balances, leave requests
  • Time Tracking: Timesheet operations (placeholder for future implementation)
  • Staffing: Position management (placeholder for future implementation)
  • Financial Management: Spend categories, worktags (placeholder for future implementation)
  • Recruiting: Job requisitions, candidates (placeholder for future implementation)
  • Payroll: Payroll balances, results, and payment dates

Each tool delegates to a vendored WorkdayComposable (WorkdayService) that self-routes its WSDL from the operation_type. Composable instances are created lazily per operation_type in _get_composable and cached for reuse.

All public async methods automatically become tools via AbstractToolkit.

Parameter Type Default Description
tenant_name str None Workday tenant name
credentials Dict[str, str] None Dict with OAuth2 credentials (client_id, client_secret, token_url, refresh_token) and default wsdl_path (typically Human Resources)
wsdl_paths Optional[Dict[str, str]] None Optional dict mapping service names to WSDL URLs, e.g.: { "human_resources": "https://.../Human_Resources/v44.2?wsdl", "absence_management": "https://.../Absence_Management/v45?wsdl", "time_tracking": "https://.../Time_Tracking/v44.2?wsdl", "staffing": "https://.../Staffing/v44.2?wsdl", "financial_management": "https://.../Financial_Management/v45?wsdl", "recruiting": "https://.../Recruiting/v44.2?wsdl", "payroll": "https://.../Payroll/v45.2?wsdl" }
redis_url Optional[str] None Redis connection URL for token caching
redis_key str 'workday:access_token' Redis key for storing access token
timeout int 30 HTTP timeout in seconds
**kwargs {} Additional toolkit configuration

Method WorkdayToolkit.wd_start

Initialize the primary SOAP client connection. Must be called before using any tools.

wd_start() -> str

Returns: str — Success message

Method WorkdayToolkit.start

Compatibility wrapper for toolkit lifecycle start.

start() -> str

Returns: str

Method WorkdayToolkit.wd_close

Close all composable connections.

wd_close() -> None

Method WorkdayToolkit.wd_get_worker

Get detailed information about a specific worker by ID.

Retrieves comprehensive worker data including personal information, job details, compensation, and organizational relationships.

wd_get_worker(worker_id: str, output_format: Optional[Type[BaseModel]] = None) -> Union[WorkerModel, BaseModel]

Parameter Type Default Description
worker_id str Worker identifier (Employee ID, Contingent Worker ID, or WID)
output_format Optional[Type[BaseModel]] None

Returns: Union[WorkerModel, BaseModel] — Worker data dictionary with all available fields

Method WorkdayToolkit.wd_search_workers

Search for workers based on various criteria.

Supports searching by text, manager, location, job profile, and hire date range. Returns a list of workers matching the specified criteria.

wd_search_workers(search_text: Optional[str] = None, manager_id: Optional[str] = None, location_id: Optional[str] = None, job_profile_id: Optional[str] = None, hire_date_from: Optional[str] = None, hire_date_to: Optional[str] = None, max_results: int = 100) -> List[Dict[str, Any]]

Parameter Type Default Description
search_text Optional[str] None Text to search in names, emails, or IDs
manager_id Optional[str] None Filter by manager's worker ID
location_id Optional[str] None Filter by location ID
job_profile_id Optional[str] None Filter by job profile ID
hire_date_from Optional[str] None Start of hire date range (YYYY-MM-DD)
hire_date_to Optional[str] None End of hire date range (YYYY-MM-DD)
max_results int 100 Maximum number of results (default 100)

Returns: List[Dict[str, Any]] — List of worker dictionaries matching the search criteria

Method WorkdayToolkit.wd_get_worker_contact

Get contact information for a specific worker.

Retrieves email addresses, phone numbers, addresses, and other contact details for the specified worker.

wd_get_worker_contact(worker_id: str, include_personal: bool = True, include_work: bool = True, output_format: Optional[Type[BaseModel]] = None) -> Dict[str, Any]

Parameter Type Default Description
worker_id str Worker identifier
include_personal bool True Include personal contact information
include_work bool True Include work contact information
output_format Optional[Type[BaseModel]] None

Returns: Dict[str, Any] — Dictionary containing all contact information

Method WorkdayToolkit.wd_get_worker_job_data

Get job-related data for a worker.

Retrieves position, job profile, location, manager, compensation, and other employment details for the specified worker.

wd_get_worker_job_data(worker_id: str, effective_date: Optional[str] = None) -> Dict[str, Any]

Parameter Type Default Description
worker_id str Worker identifier
effective_date Optional[str] None Date for which to retrieve data (YYYY-MM-DD). Defaults to today.

Returns: Dict[str, Any] — Dictionary containing job data

Method WorkdayToolkit.wd_get_organization

Get organization information by ID.

Retrieves details about an organizational unit including its name, type, manager, and optionally its hierarchical structure.

wd_get_organization(org_id: str, include_hierarchy: bool = False) -> Dict[str, Any]

Parameter Type Default Description
org_id str Organization ID or reference
include_hierarchy bool False Include organizational hierarchy

Returns: Dict[str, Any] — Dictionary containing organization data

Method WorkdayToolkit.wd_get_worker_time_off_balance

Get time off balance for a worker.

Retrieves available time off balances for all time off types assigned to the worker.

wd_get_worker_time_off_balance(worker_id: str, output_format: Optional[Type[BaseModel]] = None) -> Dict[str, Any]

Parameter Type Default Description
worker_id str Worker identifier
output_format Optional[Type[BaseModel]] None

Returns: Dict[str, Any] — Dictionary containing time off balances by type

Method WorkdayToolkit.wd_get_time_off_balance

Get time off plan balances for a worker using Absence Management API.

This method uses the Get_Time_Off_Plan_Balances operation from the Workday Absence Management WSDL, which provides more detailed balance information than the Get_Workers operation.

wd_get_time_off_balance(worker_id: str, time_off_plan_id: Optional[str] = None, output_format: Optional[Type[BaseModel]] = None) -> Union[Dict[str, Any], BaseModel]

Parameter Type Default Description
worker_id str Worker identifier (Employee_ID)
time_off_plan_id Optional[str] None Optional specific time off plan ID to filter
output_format Optional[Type[BaseModel]] None Optional Pydantic model to format the output

Returns: Union[Dict[str, Any], BaseModel] — Time off balance information formatted according to output_format or default TimeOffBalanceModel

Method WorkdayToolkit.wd_run_custom_report

Execute a Workday RaaS (Reports as a Service) custom report via REST.

wd_run_custom_report(report_name: str, report_owner: Optional[str] = None, params: Optional[Dict[str, Any]] = None, query_string_template: Optional[str] = None, flatten_list_dicts: bool = False, drop_flattened_columns: bool = False) -> List[Dict[str, Any]]

Parameter Type Default Description
report_name str Name of the custom report in Workday
report_owner Optional[str] None Owner of the report (email/ID). Defaults to configured owner/username.
params Optional[Dict[str, Any]] None Query parameters specific to the report
query_string_template Optional[str] None Optional template string to build query (e.g., 'Organization!WID={org_wid}&To_Date={end_date}')
flatten_list_dicts bool False Flatten nested dict/list fields in the response
drop_flattened_columns bool False Drop columns that remain list/dict after flattening

Returns: List[Dict[str, Any]] — List of dictionaries representing report entries

Method WorkdayToolkit.wd_get_workers_by_organization

Get all workers in an organization.

This is the most common way to "search" workers in Workday - by filtering on organizational membership.

wd_get_workers_by_organization(org_id: str, output_format: Optional[Type[BaseModel]] = None, include_subordinate: bool = True, exclude_inactive: bool = True, max_results: int = 100) -> List[Dict[str, Any]]

Parameter Type Default Description
org_id str Organization ID or reference
output_format Optional[Type[BaseModel]] None
include_subordinate bool True Include workers from sub-organizations
exclude_inactive bool True Exclude terminated/inactive workers
max_results int 100 Maximum results to return

Returns: List[Dict[str, Any]] — List of worker dictionaries

Method WorkdayToolkit.wd_get_workers_by_ids

Get multiple workers by their IDs.

This is the most efficient way to retrieve specific workers.

wd_get_workers_by_ids(worker_ids: List[str], id_type: str = 'Employee_ID') -> List[Dict[str, Any]]

Parameter Type Default Description
worker_ids List[str] List of worker identifiers
id_type str 'Employee_ID' Type of ID (Employee_ID, WID, etc.)

Returns: List[Dict[str, Any]] — List of worker dictionaries

Method WorkdayToolkit.wd_search_workers_by_name

Search workers by name using Field_And_Parameter_Criteria.

Note: This is less efficient than organizational searches. Consider combining with organizational filters for better performance.

wd_search_workers_by_name(name: str, max_results: int = 100, search_type: str = 'Contains') -> List[Dict[str, Any]]

Parameter Type Default Description
name str Name to search for
max_results int 100 Maximum results
search_type str 'Contains' Type of search (Contains, Equals, Starts_With)

Returns: List[Dict[str, Any]] — List of matching workers

Method WorkdayToolkit.wd_get_workers_by_manager

Get all workers reporting to a manager.

Note: Workday doesn't have a direct "manager filter" in Get_Workers. This implementation gets the manager's position and then finds all workers in that supervisory organization.

For true hierarchical reporting, you may need to:

  1. Get the manager's position
  2. Get the supervisory organization
  3. Query workers in that organization

wd_get_workers_by_manager(manager_id: str, include_indirect_reports: bool = False, max_results: int = 100) -> List[Dict[str, Any]]

Parameter Type Default Description
manager_id str Manager's worker ID
include_indirect_reports bool False Include indirect reports
max_results int 100 Maximum results

Returns: List[Dict[str, Any]] — List of direct/indirect reports

Method WorkdayToolkit.wd_get_inactive_workers

Get terminated/inactive workers.

wd_get_inactive_workers(org_id: Optional[str] = None, termination_date_from: Optional[str] = None, termination_date_to: Optional[str] = None, max_results: int = 100) -> List[Dict[str, Any]]

Parameter Type Default Description
org_id Optional[str] None Optional organization filter
termination_date_from Optional[str] None Start of termination date range (YYYY-MM-DD)
termination_date_to Optional[str] None End of termination date range (YYYY-MM-DD)
max_results int 100 Maximum results

Returns: List[Dict[str, Any]] — List of inactive workers

Method WorkdayToolkit.wd_get_payroll_balances

Get payroll balances for a worker.

wd_get_payroll_balances(worker_id: str, start_date: Optional[str] = None, end_date: Optional[str] = None, pay_component_group_ids: Optional[List[str]] = None) -> Dict[str, Any]

Parameter Type Default Description
worker_id str Worker ID
start_date Optional[str] None Start date for balance calculation (YYYY-MM-DD)
end_date Optional[str] None End date for balance calculation (YYYY-MM-DD)
pay_component_group_ids Optional[List[str]] None List of Pay Component Group IDs to filter

Returns: Dict[str, Any] — Dictionary of payroll balances

Method WorkdayToolkit.wd_get_payroll_results

Get payroll results (historical/off-cycle) for a worker.

wd_get_payroll_results(worker_id: str, start_date: Optional[str] = None, end_date: Optional[str] = None, include_details: bool = False) -> List[Dict[str, Any]]

Parameter Type Default Description
worker_id str Worker ID
start_date Optional[str] None Start date (YYYY-MM-DD)
end_date Optional[str] None End date (YYYY-MM-DD)
include_details bool False Include detailed result lines

Returns: List[Dict[str, Any]] — List of payroll result entries

Method WorkdayToolkit.wd_get_company_payment_dates

Get company payment dates.

wd_get_company_payment_dates(start_date: str, end_date: str, pay_group_id: Optional[str] = None) -> List[Dict[str, Any]]

Parameter Type Default Description
start_date str Start date (YYYY-MM-DD)
end_date str End date (YYYY-MM-DD)
pay_group_id Optional[str] None Optional Pay Group ID to filter

Returns: List[Dict[str, Any]] — List of company payment dates

Method WorkdayToolkit.wd_get_position

Get a position (seat) by its Position ID.

Returns the position's posting title, its allowed Job Profile(s) (the catalog job, which can differ from the posting title), status, supervisory organization, default company/cost center, the worker filling it and its competencies.

wd_get_position(position_id: str, include_closed: bool = True) -> Dict[str, Any]

Parameter Type Default Description
position_id str Workday Position ID (e.g. "P105294")
include_closed bool True Also return closed positions (Workday omits them by default)

Returns: Dict[str, Any] — Position data dictionary, or an empty dict if the position is not found

Method WorkdayToolkit.wd_get_job_profile

Get a Job Profile (catalog job) by its Job Profile ID.

Returns the job title, description, management level, job families, classifications, pay rate type and exempt status per country, compensation grade, workers' compensation codes and skills.

wd_get_job_profile(job_profile_id: str) -> Dict[str, Any]

Parameter Type Default Description
job_profile_id str Workday Job Profile ID / job code (e.g. "STFLV")

Returns: Dict[str, Any] — Job Profile data dictionary, or an empty dict if not found

Method WorkdayToolkit.wd_get_worker_event_history

Get the Workday event history of a worker (hire, change job, organization assignment, time entry, time off, benefits, ...).

Returns one dict per event with event_id, event_type, description, effective_date and completed_at, sorted by effective date. Events are references only: use wd_get_worker_job_changes to see what a job change changed.

wd_get_worker_event_history(worker_id: str, worker_id_type: Optional[str] = None, effective_from: Optional[str] = None, effective_through: Optional[str] = None, updated_from: Optional[str] = None, updated_through: Optional[str] = None) -> List[Dict[str, Any]]

Parameter Type Default Description
worker_id str
worker_id_type Optional[str] None
effective_from Optional[str] None
effective_through Optional[str] None
updated_from Optional[str] None
updated_through Optional[str] None

Returns: List[Dict[str, Any]]

Method WorkdayToolkit.wd_get_worker_job_changes

Get a worker's job changes over time: position, job profile, business title, location, supervisory organization, cost center, company, pay group and manager, and optionally compensation (include_compensation=True).

Returns one dict per effective date with kind ("hire" | "change" | "no_change"), the triggering events, the before/after job snapshots and the list of changed fields.

wd_get_worker_job_changes(worker_id: str, worker_id_type: Optional[str] = None, effective_from: Optional[str] = None, effective_through: Optional[str] = None, include_unchanged: bool = False, include_compensation: bool = False) -> List[Dict[str, Any]]

Parameter Type Default Description
worker_id str
worker_id_type Optional[str] None
effective_from Optional[str] None
effective_through Optional[str] None
include_unchanged bool False
include_compensation bool False

Returns: List[Dict[str, Any]]

Method WorkdayToolkit.find_employee_id_by_name

Find Workday employee IDs and names matching a worker name.

Searches workers by legal name (contains match). Returns a list of matching workers with their employee ID and display name.

find_employee_id_by_name(name: str, max_results: int = 50) -> List[Dict[str, Any]]

Parameter Type Default Description
name str Full or partial worker name to search for.
max_results int 50 Maximum number of results to return.

Returns: List[Dict[str, Any]] — List of dicts with worker_id and formatted_name keys.

Method WorkdayToolkit.get_current_user_info

Get comprehensive Workday information for a worker.

Returns all available fields for the worker including employment, compensation, organisation, and management chain data.

get_current_user_info(worker_id: str) -> Dict[str, Any]

Parameter Type Default Description
worker_id str Workday Employee ID.

Returns: Dict[str, Any] — Dict with all available worker fields.

Method WorkdayToolkit.get_more_employee_data

Get extended employee data from Workday including benefits, roles, and documents.

Similar to get_current_user_info but emphasises extended fields such as benefits, assigned roles, and document details.

get_more_employee_data(worker_id: str) -> Dict[str, Any]

Parameter Type Default Description
worker_id str Workday Employee ID.

Returns: Dict[str, Any] — Dict with extended worker fields.

Method WorkdayToolkit.get_personal_information

Get personal information for a Workday worker.

Returns name, date of birth, gender, nationality, marital status, and contact details as stored in Workday.

get_personal_information(worker_id: str) -> Dict[str, Any]

Parameter Type Default Description
worker_id str Workday Employee ID.

Returns: Dict[str, Any] — Dict with personal information fields.

Method WorkdayToolkit.get_direct_reports

Get the direct reports (subordinates) of a manager in Workday.

Returns all active workers whose immediate manager is the given worker.

get_direct_reports(worker_id: str) -> List[Dict[str, Any]]

Parameter Type Default Description
worker_id str Workday Employee ID of the manager.

Returns: List[Dict[str, Any]] — List of worker dicts for each direct report.

Method WorkdayToolkit.get_time_off_balance

Get time off plan balances for a worker.

Returns available balances for all time off plans assigned to the worker. Optionally filter by a specific time off plan.

get_time_off_balance(worker_id: str, time_off_plan_id: Optional[str] = None) -> List[Dict[str, Any]]

Parameter Type Default Description
worker_id str Workday Employee ID.
time_off_plan_id Optional[str] None Optional time off plan ID to filter.

Returns: List[Dict[str, Any]] — List of dicts with plan name, balance, and unit fields.

Method WorkdayToolkit.get_current_user_time_off_balance

Get all time off plan balances for a worker (all plans).

Returns the current available balance for every time off plan assigned to the worker.

get_current_user_time_off_balance(worker_id: str) -> List[Dict[str, Any]]

Parameter Type Default Description
worker_id str Workday Employee ID.

Returns: List[Dict[str, Any]] — List of dicts with plan name, balance, and unit fields.

Method WorkdayToolkit.get_current_user_time_off_history

Get time off request history for a worker.

Returns submitted time off requests within the given date range. Defaults to the last 7 days when no range is provided.

get_current_user_time_off_history(worker_id: str, start_date: Optional[str] = None, end_date: Optional[str] = None) -> List[Dict[str, Any]]

Parameter Type Default Description
worker_id str Workday Employee ID.
start_date Optional[str] None Start of date range (YYYY-MM-DD).
end_date Optional[str] None End of date range (YYYY-MM-DD).

Returns: List[Dict[str, Any]] — List of time request dicts with dates, status, and hours.

Method WorkdayToolkit.get_today_date_and_day_of_week

Return today's ISO date and the day of the week name.

No Workday call is made. Useful for agents that need the current date context before performing date-relative operations.

get_today_date_and_day_of_week() -> Dict[str, str]

Returns: Dict[str, str] — Dict with 'date' (ISO-8601) and 'day_of_week' keys.

Method WorkdayToolkit.request_my_time_off

Submit a time-off request in Workday on behalf of a worker.

By default runs in dry-run mode (no submission). Set dry_run=False to actually submit the request to Workday Absence Management.

request_my_time_off(worker_id: str, start_date: str, end_date: str, time_off_type: str, daily_quantity: float = 8.0, comment: Optional[str] = None, dry_run: bool = True) -> Dict[str, Any]

Parameter Type Default Description
worker_id str Workday Employee ID.
start_date str First day of the time-off period (YYYY-MM-DD).
end_date str Last day of the time-off period (YYYY-MM-DD).
time_off_type str Time_Off_Type_ID value (e.g. 'VACATION', 'PTO').
daily_quantity float 8.0 Hours or days per calendar day (default 8.0).
comment Optional[str] None Optional employee comment on the request.
dry_run bool True If True (default), validates without submitting.

Returns: Dict[str, Any] — Dict with submission status. Includes dry_run=True when not submitted.

Method WorkdayToolkit.get_my_time_off_eligibility

Get the time-off types a worker is eligible to request in Workday.

Queries the Absence Management WSDL (Get_Time_Off_Types) to return the list of time-off plans the given worker can submit a request for.

get_my_time_off_eligibility(worker_id: str) -> List[Dict[str, Any]]

Parameter Type Default Description
worker_id str Workday Employee ID.

Returns: List[Dict[str, Any]] — List of dicts with time_off_type_id, name, description, and unit fields.

Class WorkdayToolkitInput

Default configuration for Workday toolkit operations.

Fields:

Field Type Default Description
tenant_name str Workday tenant name (e.g., 'acme_impl', 'company_prod')
include_reference bool True Include reference data in responses

Alias WorkerModel

Re-exported from parrot_tools.workday.models.WorkerModel.

Alias ensure_list

Re-exported from parrot_tools.interfaces.workday.utils.utils.ensure_list.

Alias extract_by_type

Re-exported from parrot_tools.interfaces.workday.utils.utils.extract_by_type.

Alias first

Re-exported from parrot_tools.interfaces.workday.utils.utils.first.

Alias tool_schema

Re-exported from parrot_tools.decorators.tool_schema.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally